1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-28 07:21:26 +03:00
libxml2/result/badcomment.xml.sax2

25 lines
669 B
Plaintext
Raw Normal View History

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElementNs(foo, NULL, NULL, 0, 0, 0)
SAX.characters(
, 1)
SAX.comment( def='NT-Char')
SAX.comment(>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>)
SAX.characters(
, 1)
SAX.endElementNs(foo, NULL, NULL)
SAX.endDocument()