GNOME Bugzilla – Bug 438835
xmlreader problem with long comment at beginning of document
Last modified: 2007-06-12 14:47:25 UTC
Please describe the problem: Hi, I've discovered a strange problem with documents that have a long comment at the beginning (such as the attached a.xml). A slightly shorter header comment solves the problem (such as in the attached b.xml). The problem occurs only with --stream. I can reproduce with 2.6.26 (cygwin) and the latest subversion code (win32). -sbi Steps to reproduce: ~>xmllint --stream --noout --valid a.xml a.xml:10: parser error : Extra content at the end of the document <!DOCTYPE a [ ^ a.xml : failed to parse ~>xmllint --stream --noout --valid b.xml ~>xmllint --noout --valid a.xml ~>xmllint --noout --valid b.xml Actual results: Expected results: Does this happen every time? Other information:
Created attachment 88267 [details] a.xml
Created attachment 88268 [details] b.xml
Okay found it, the patch is minimal but we have some horrible code in push mode to detect the end of the internal subset and having a large comment or PI at the beginning of the XML. I added a test case in the suite, commited to SVN head, thanks for the report ! Daniel