[xml] Premature end of data in tag




Hi,

when I try to parse a xml file with tags containing special characters
(like CONTROL-M) I get an error "premature end of data in tag <tag name>".
For example
I get this error message ("premature end of data in tag <CaptionWriter>")
running the command

xmllint --debug test.xml

where test.xml is the following xml file:

<?xml version='1.0' encoding="ISO-8859-1" ?>
<OBJECT type="image">
<METADATA>
<CopyrightNotice></CopyrightNotice>
<Caption>image, bloody image</Caption>
<CaptionWriter></CaptionWriter>
</METADATA>
<DATAFILE location="test.jfif"></DATAFILE>
</OBJECT>

Are there special characters not allowed in a xml tag?


Thanks,

Filippo


(See attached file: test.xml)

Attachment: test.xml
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]