Hi all,

I'm having a problem parsing the attached document with libxml 2.6.22.
My application uses the SAX2 interface in push mode, but for some reason 
I'm only able to reproduce it using xmllint --stream:

$ xmllint --stream badcomment.xml
badcomment.xml:17: parser error : Comment not terminated
<!-->Char</nt>* ']]&gt;' <nt def='NT-Char'>Char</nt>*)
'&comc;&gt;'</rhs>--
                    ^
badcomment.xml : failed to parse

The test case is somewhat fragile (but I'm fairly sure it's well-formed) 
- if I try to cut it down to a smaller doc it doesn't happen.  I'm
wondering if it's exposing some buffering problem in the parser.

Any ideas?

Thanks,

Graham

-- 
Graham Bennett
<?xml version="1.0" encoding="UTF-8"?>

<foo>
<!-- def='NT-Char'--><!-->Char</nt>* ']]&gt;' <nt def='NT-Char'>Char</nt>*))
']]&gt;'</rhs>
<com>CDATA sections</com>
<rhs>| '&lt;!DOCTYPE' 
(<nt def="NT-Char">Char</nt> - ('[' | ']'))+
('[' 
<nt def="NT-simpleDTD">simpleDTD</nt>*
']')? '&gt;'</rhs>
<com>doc type declaration</com>
<prod id="NT-simpleDTD"><lhs>simpleDTD</lhs>
<rhs>'&lt;!&como;' 
(<nt def='NT-Char'>Char</nt>* - 
(<nt def='NT-Char'>Char</nt>* '&comc;' <nt def='NT-Char'>Char</nt>*))
'&comc;&gt;'</rhs>-->
</foo>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to