GNOME Bugzilla – Bug 339311
"internal error"
Last modified: 2006-04-24 08:51:36 UTC
Using this file, foo.xml: <?xml version="1.0" encoding="UTF-8"?> <xxx>xxx yyy</xxx> (where there are two literal ^Hs between "xxx " and " yyy") I get... > ./xmllint ~/foo.xml /home/welinder/foo.xml:2: parser error : internal error <xxx>xx yyy</xxx> ^ /home/welinder/foo.xml:2: parser error : Extra content at the end of the document <xxx>xx yyy</xxx> ^ (And, btw., it should be "parser error:" not "parser error :".) Note: I don't know if this file is valid or not. But in either case, "internal error" is not the right answer.
if ^H is what it means, then that's not XML, the fact it's raising it as internal error is a different relatively minor problem. Provide the input as an attachment no way a cut an past be meaningful in such a context. Looks NOTABUG to me except for the message, which I will track down if I have a reproductible case, Daniel
Created attachment 64062 [details] foo.xml sample file
The example contains character of codepoint 0008, and clearly this is not XML http://www.w3.org/TR/REC-xml/#NT-Char the parser must fail on it, so the behviour is normal, the error report is right when pointing the location of the error, just that the message is not right. I fixed this in CVS: paphio:~/XML -> xmllint foo.xml foo.xml:2: parser error : PCDATA invalid Char value 8 <xxx>xx yyy</xxx> ^ foo.xml:2: parser error : PCDATA invalid Char value 8 <xxx>xx yyy</xxx> ^ paphio:~/XML -> thanks for the report, Daniel