Question to xml output

Started by herb, September 13, 2018, 11:23:14 AM

Previous topic - Next topic

herb

Hello Phil,

I work with Exiftool 11.10 on a Windows 7 system.
In my test I export a multiline string - here iptc:by-line - into an xml sidecar file with command
exiftool.exe -use mwg -m -lang de -g0:1 -a -X -struct -w! F:\xmlspez.%txml -IPTC:all -XMP:all testfile.jpg

I checked the multiline values with a hex-editor and I have seen that CRLF - h'0D0A - in file is exported as CRCRLF - h'0D0D0A - in *.xml file.
Is this an error?

Thanks for your help in advance
Best regards
Herb

Hayo Baan

Hmm, I can't reproduce this on a Mac, but it could be a windows specific bug. Let's see what Phil has to say about this one when he returns.
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

Hi Herb,

I added a CR/LF sequence to an IPTC Keyword like this:

exiftool -keywords="test
this" -E a.jpg

then extracted with your command, and the resulting XML file had the correct CR/LF sequence using Windows 10.

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

herb

Hello Phil, hello HayoBaan,

thanks that you repeated the tests and that you tried to find the error.
When I opened this topic I thought, it is a generic problem. But I was wrong. It seems to be a very specific one.

I prepared a small *.jpg file into which I copied the -iptc:by-linetitle tag.
This tag has 2 list elements and the first one is a multiline value. The strange content is a result of many many tests.
Please repeat the test with this file: imagexmltest.jpg

Thanks for your help in advance
Best regards
Herb

Phil Harvey

Ah right.  My test would have shown the problem if I added another keyword.

I'll fix this in the next release.

Thanks for the report.

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