Storage-StreamPathname xml output

Started by Archive, May 12, 2010, 08:54:37 AM

Previous topic - Next topic

Archive

[Originally posted by prushforth on 2009-06-17 01:47:34-07]

Hi,

I am using exiftool (thanks, great tool!) called by an XSLT stylesheet to present jpg files to the stylesheet as their metadata.  I do this by creating a URIResolver which when presented with a filename ending in jpg or jpeg, invokes exiftool -X via the Runtime object in java.  The standard output is cast to a SAX Source object.

However, the output from exiftool can be ill-formed, which is fatal to the parsing process.  Maybe it's because there are corrupted characters in the image metadata content which don't play well in XML.

Here's a sample output of the parser:

Code:
Error on line 81 column 36
  SXXP0003: Error reported by XML parser: An invalid XML character (Unicode: 0x5) was found
  in the element content of the document.
Transformation failed: Run-time errors were reported

and here's line 81:

Code:
<FlashPix:Storage-StreamPathname>/Screen Nail_bd0100609719a180<FlashPix:Storage-StreamPathname>

The "ace of clubs" (unprintable unicode character to the right of /, before Screen...)
is apparently what is causing the problem.

Is there any possible way to have exiftool do entity replacement or some such?

Cheers and thanks!

Peter

Archive

[Originally posted by exiftool on 2009-06-17 10:59:09-07]

Hi Peter,

Please update to the most recent version of exiftool (7.78).

- Phil