1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00
libxml2/result/cdata2.sax2
Daniel Veillard 0161e638c6 completely different fix for the recursion detection based on entity
* 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
2008-08-28 15:36:32 +00:00

18 lines
377 B
Plaintext

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElementNs(collection, NULL, NULL, 0, 0, 0)
SAX.characters(
, 3)
SAX.startElementNs(test, NULL, NULL, 0, 0, 0)
SAX.pcdata(
<![CDATA[abc], 18)
SAX.characters(], 1)
SAX.characters(>, 1)
SAX.pcdata(
, 3)
SAX.endElementNs(test, NULL, NULL)
SAX.characters(
, 1)
SAX.endElementNs(collection, NULL, NULL)
SAX.endDocument()