Bug in XML from Image::ExifTool::TagInfoXML::Write

Started by Wernfried, February 07, 2017, 04:06:33 AM

Previous topic - Next topic

Wernfried

Hi Phil

I just discovered a bug in Image::ExifTool::TagInfoXML::Write method. I used

Image::ExifTool::TagInfoXML::Write('c:/Temp/dst.xml', undef, Lang => 'de');


XML file is generated, however it is not well-formed, at some (not all) tags, the closing ">" is missing.



<?xml version='1.0' encoding='UTF-8'?>
<!-- Generated by Image::ExifTool 10.40 -->
<taginfo>

<table name='AFCP::Main' g0='AFCP' g1='AFCP' g2='Other'>
<desc lang='en'>AFCP</desc>
<tag id='Nail' name='ThumbnailImage' type='?' writable='false' g2='Preview' --> ">" is missing
  <desc lang='de'>Miniaturbild</desc>
</tag>
<tag id='PrVw' name='PreviewImage' type='?' writable='false' g2='Preview'
  <desc lang='de'>Vorschaubild</desc>
</tag>
<tag id='TEXT' name='Text' type='?' writable='false'> --> here it is fine
  <desc lang='en'>Text</desc>
</tag>
</table>

...



Please review.

Best Regards
Wernfried





Phil Harvey

Hi Wernfried,

Thanks for this report!  This will be fixed in ExifTool 10.42.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).