checking a files existence
Posted: Thu Jan 08, 2009 2:29 am
Complete noob with oXygen and not very familiar with XML to boot so bear with me. An application (that I cannot control) performs a data import using XML and external graphic files. The app goes line-by-line through the XML, finds the files then imports them from their stated location (typically a relative path bundled within a zip). The problem comes when a file is missing. At this point the application throws an exception and stops.
I'd like to get a report of all the missing files so I can make placeholders and continue with the import. An example of a media reference is below:
I'm not a programmer but have (years ago) used js and vbscript in the past to do projects like this. Am I right in assuming that oXygen can perform the task of creating the offending file report? Either way is better than looking through about 1 million lines and checking manually
Any help is appreciated.
I'd like to get a report of all the missing files so I can make placeholders and continue with the import. An example of a media reference is below:
Code: Select all
<media display="visible">
<label><![CDATA[New: Figure]]></label>
<description/>
<comments/>
<keywords/>
<mediafiles>
<mediafile>
<filename><![CDATA[./media/PD/bigpicture.png]]></filename>
<dpi/>
<width>200</width>
<mediatype>web</mediatype>
</mediafile>
</mediafiles>
<alttext/>
</media>
