mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
0161e638c6
* parser.c include/libxml/parser.h: completely different fix for the recursion detection based on entity density, big cleanups in the entity parsing code too * result/*.sax*: the parser should not ask for used defined versions of the predefined entities * testrecurse.c: automatic test for entity recursion checks * Makefile.am: added testrecurse * test/recurse/lol* test/recurse/good*: a first set of tests for the recursion Daniel svn path=/trunk/; revision=3783
24 lines
724 B
Plaintext
24 lines
724 B
Plaintext
SAX.setDocumentLocator()
|
|
SAX.startDocument()
|
|
SAX.internalSubset(test, , )
|
|
SAX.entityDecl(example, 1, (null), (null), <p>An ampersand (&) may be escaped
|
|
numerically (&#38;) or with a general entity
|
|
(&amp;).</p>)
|
|
SAX.getEntity(example)
|
|
SAX.externalSubset(test, , )
|
|
SAX.startElementNs(test, NULL, NULL, 0, 0, 0)
|
|
SAX.getEntity(example)
|
|
SAX.startElementNs(p, NULL, NULL, 0, 0, 0)
|
|
SAX.characters(An ampersand (, 14)
|
|
SAX.characters(&, 1)
|
|
SAX.characters() may be escaped
|
|
numerically , 31)
|
|
SAX.characters(&, 1)
|
|
SAX.characters(#38;) or with a general entity, 34)
|
|
SAX.characters(&, 1)
|
|
SAX.characters(amp;)., 6)
|
|
SAX.endElementNs(p, NULL, NULL)
|
|
SAX.reference(example)
|
|
SAX.endElementNs(test, NULL, NULL)
|
|
SAX.endDocument()
|