1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-24 21:33:51 +03:00
libxml2/result/emptycdata.xml.sax2
Daniel Veillard d0d2f090dc fix handling of empty CDATA nodes as reported and discussed around #514181
* xmlsave.c parser.c: fix handling of empty CDATA nodes as 
  reported and discussed around #514181 and associated patches
* test/emptycdata.xml result/emptycdata.xml* 
  result/noent/emptycdata.xml: added a specific test in the
  regression suite.
Daniel

svn path=/trunk/; revision=3701
2008-03-07 16:50:21 +00:00

11 lines
292 B
Plaintext

SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElementNs(html, NULL, 'http://www.w3.org/1999/xhtml', 1, xmlns='http://www.w3.org/1999/xhtml', 0, 0)
SAX.characters(
, 1)
SAX.pcdata(, 0)
SAX.characters(
, 1)
SAX.endElementNs(html, NULL, 'http://www.w3.org/1999/xhtml')
SAX.endDocument()