mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-12 09:17:37 +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
30 lines
614 B
Plaintext
30 lines
614 B
Plaintext
SAX.setDocumentLocator()
|
|
SAX.startDocument()
|
|
SAX.startElement(rec)
|
|
SAX.characters(
|
|
, 1)
|
|
SAX.startElement(eg)
|
|
SAX.pcdata(<!ENTITY % pub "&, 162)
|
|
SAX.endElement(eg)
|
|
SAX.characters(
|
|
then the replacement text for, 43)
|
|
SAX.startElement(code)
|
|
SAX.characters(book, 4)
|
|
SAX.endElement(code)
|
|
SAX.characters(" is:
|
|
, 6)
|
|
SAX.startElement(eg)
|
|
SAX.characters(La Peste: Albert Camus,
|
|
, 25)
|
|
SAX.characters(©, 2)
|
|
SAX.characters( 1947 , 6)
|
|
SAX.characters(É, 2)
|
|
SAX.characters(ditions Gallimard. , 19)
|
|
SAX.characters(&, 1)
|
|
SAX.characters(rights;, 7)
|
|
SAX.endElement(eg)
|
|
SAX.characters(
|
|
, 1)
|
|
SAX.endElement(rec)
|
|
SAX.endDocument()
|