1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

- testSAX.c: fixed problem with cdata reporting

- SAXresult/* : updated
Daniel
This commit is contained in:
Daniel Veillard 2000-10-15 10:06:55 +00:00
parent 1e851392fc
commit 399156223f
33 changed files with 177 additions and 60 deletions

View File

@ -1,3 +1,8 @@
Sun Oct 15 12:06:16 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* testSAX.c: fixed problem with cdata reporting
* SAXresult/* : updated
Sun Oct 15 12:00:24 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* parser.c test/wap.xml result/noent/wap.xml result/wap.xml:

12
SAXresult/bigentname.xml Normal file
View File

@ -0,0 +1,12 @@
xmlSAXUserParseFile returned error 26
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, , )
SAX.entityDecl(very_big_entity_name01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_very_big_ent_name, 1, (null), (null), "Yes")
SAX.getEntity(very_big_entity_name01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_very_big_ent_name)
SAX.entityDecl(WhatHeSaid, 1, (null), (null), He said &very_big_entity_name01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_end_of_very_big_ent_name;)
SAX.getEntity(WhatHeSaid)
SAX.startElement(doc)
SAX.getEntity(WhatHeSaid)
SAX.error: Entity 'WhatHeSaid' not defined
xmlSAXUserParseFile returned error 26

5
SAXresult/bigname.xml Normal file

File diff suppressed because one or more lines are too long

5
SAXresult/bigname2.xml Normal file

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@ SAX.startDocument()
SAX.startElement(doc)
SAX.characters(
, 1)
SAX.pcdata(<greeting>Hello, wor, 34)
SAX.characters(
, 1)
SAX.endElement(doc)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 4, ...)
SAX.elementDecl(a, 3, ...)
SAX.elementDecl(b, 3, ...)

View File

@ -1,8 +1,8 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 3, ...)
SAX.attributeDecl(doc, val, 1, 3, (null), ...)
SAX.attributeDecl(doc, val, 1, 3, NULL, ...)
SAX.startElement(doc, val='v1')
SAX.endElement(doc)
SAX.endDocument()

View File

@ -1,16 +1,12 @@
xmlSAXUserParseFile returned error 27
xmlSAXUserParseFile returned error 26
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.entityDecl(YN, 4, (null), (null), "Yes")
SAX.getParameterEntity(YN)
SAX.getParameterEntity(YN)
SAX.error: PEReference: %YN; not found
SAX.entityDecl(WhatHeSaid, 1, (null), (null), He said )
SAX.internalSubset(doc, , )
SAX.entityDecl(YN, 1, (null), (null), "Yes")
SAX.getEntity(YN)
SAX.entityDecl(WhatHeSaid, 1, (null), (null), He said &YN;)
SAX.getEntity(WhatHeSaid)
SAX.startElement(doc)
SAX.getEntity(WhatHeSaid)
SAX.warning: Entity 'WhatHeSaid' not defined
SAX.endElement(doc)
SAX.endDocument()
xmlSAXUserParseFile returned error 27
SAX.error: Entity 'WhatHeSaid' not defined
xmlSAXUserParseFile returned error 26

View File

@ -1,7 +1,7 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.comment( comment before the DTD )
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 2, ...)
SAX.comment( comment after the DTD )
SAX.startElement(doc)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 3, ...)
SAX.startElement(doc)
SAX.characters(This is a valid document !, 26)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 2, ...)
SAX.startElement(doc)
SAX.characters(This is a valid document !, 26)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 1, ...)
SAX.startElement(doc)
SAX.endElement(doc)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 3, ...)
SAX.elementDecl(a, 3, ...)
SAX.elementDecl(b, 3, ...)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 4, ...)
SAX.elementDecl(a, 3, ...)
SAX.elementDecl(b, 3, ...)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 4, ...)
SAX.elementDecl(a, 3, ...)
SAX.elementDecl(b, 3, ...)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 4, ...)
SAX.elementDecl(a, 3, ...)
SAX.elementDecl(b, 3, ...)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.elementDecl(doc, 4, ...)
SAX.elementDecl(a, 3, ...)
SAX.elementDecl(b, 3, ...)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(EXAMPLE, (null), example.dtd)
SAX.internalSubset(EXAMPLE, , example.dtd)
SAX.entityDecl(xml, 1, (null), (null), Extensible Markup Language)
SAX.getEntity(xml)
SAX.startElement(EXAMPLE)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(EXAMPLE, (null), example.dtd)
SAX.internalSubset(EXAMPLE, , example.dtd)
SAX.entityDecl(xml, 1, (null), (null), Extensible Markup Language)
SAX.getEntity(xml)
SAX.entityDecl(title, 2, -//MY-TITLE//FR, title.xml, (null))

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(EXAMPLE, (null), example.dtd)
SAX.internalSubset(EXAMPLE, , example.dtd)
SAX.entityDecl(xml, 1, (null), (null), Extensible Markup Language)
SAX.getEntity(xml)
SAX.getEntity(amp)

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(EXAMPLE, (null), example.dtd)
SAX.internalSubset(EXAMPLE, , example.dtd)
SAX.entityDecl(xml, 1, (null), (null), Extensible Markup Language)
SAX.getEntity(xml)
SAX.startElement(EXAMPLE)

View File

@ -2,6 +2,12 @@ SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(EXAMPLE)
SAX.characters(
This is an inverted excla, 67)
This is an inverted excla, 42)
SAX.characters(¡, 2)
SAX.characters(
This is a space , 21)
SAX.characters( , 1)
SAX.characters(
, 2)
SAX.endElement(EXAMPLE)
SAX.endDocument()

View File

@ -1,6 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.entityDecl(lt, 1, (null), (null), &#60;)
SAX.getEntity(lt)
SAX.entityDecl(gt, 1, (null), (null), >)

View File

@ -1,21 +1,13 @@
xmlSAXUserParseFile returned error 27
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(item, (null), (null))
SAX.internalSubset(item, , )
SAX.entityDecl(sampleEnt, 4, (null), (null), <!ELEMENT item (para)+>)
SAX.getParameterEntity(sampleEnt)
SAX.entityDecl(sampleEnt, 1, (null), (null), the hyacinth girl)
SAX.getEntity(sampleEnt)
SAX.getParameterEntity(sampleEnt)
SAX.error: PEReference: %sampleEnt; not found
SAX.elementDecl(para, 3, ...)
SAX.startElement(item)
SAX.startElement(para)
SAX.characters('they called me , 16)
SAX.getEntity(sampleEnt)
SAX.warning: Entity 'sampleEnt' not defined
SAX.characters(', 1)
SAX.endElement(para)
SAX.endElement(item)
SAX.endDocument()
xmlSAXUserParseFile returned error 27

View File

@ -1,7 +1,7 @@
xmlSAXUserParseFile returned error 26
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(doc, (null), (null))
SAX.internalSubset(doc, , )
SAX.entityDecl(test1, 1, (null), (null), test 1)
SAX.getEntity(test1)
SAX.entityDecl(test2, 1, (null), (null), test 2)
@ -10,8 +10,9 @@ SAX.startElement(doc)
SAX.characters(
, 4)
SAX.startElement(Content)
SAX.characters(Retenç, 6)
SAX.characters(ã, 1)
SAX.characters(Reten, 5)
SAX.characters(ç, 2)
SAX.characters(ã, 2)
SAX.characters(o, 1)
SAX.endElement(Content)
SAX.characters(
@ -29,9 +30,4 @@ SAX.getEntity(test1)
SAX.error: Entity 'test1' not defined
SAX.getEntity(test2)
SAX.error: Entity 'test2' not defined
SAX.endElement(Content)
SAX.characters(
, 1)
SAX.endElement(doc)
SAX.endDocument()
xmlSAXUserParseFile returned error 26

View File

@ -4,6 +4,7 @@ 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)
@ -14,7 +15,11 @@ SAX.characters(" is:
, 6)
SAX.startElement(eg)
SAX.characters(La Peste: Albert Camus,
© 19, 54)
, 25)
SAX.characters(©, 2)
SAX.characters( 1947 , 6)
SAX.characters(É, 2)
SAX.characters(ditions Gallimard. , 19)
SAX.getEntity(amp)
SAX.characters(&, 1)
SAX.characters(rights;, 7)

View File

@ -68,13 +68,21 @@ SAX.endElement(RPM:Summary)
SAX.characters(
, 5)
SAX.startElement(RPM:Description)
SAX.characters(Diese Library stellt dem Progr, 173)
SAX.characters(Diese Library stellt dem Progr, 57)
SAX.characters(ä, 2)
SAX.characters(ngige
Routinen zur Ansteuerung, 57)
SAX.characters(ü, 2)
SAX.characters(gung, die
speziell optimiert s, 57)
SAX.getEntity(apos)
SAX.characters(', 1)
SAX.characters(new curses, 10)
SAX.getEntity(apos)
SAX.characters(', 1)
SAX.characters( (ncurses) Variante und ist de, 122)
SAX.characters( (ncurses) Variante und ist de, 51)
SAX.characters(ü, 2)
SAX.characters(r die klassische Curses-Librar, 70)
SAX.endElement(RPM:Description)
SAX.characters(
, 5)

6
SAXresult/tstblanks.xml Normal file
View File

@ -0,0 +1,6 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(a, test='passed')
SAX.characters(content, 7)
SAX.endElement(a)
SAX.endDocument()

85
SAXresult/wap.xml Normal file
View File

@ -0,0 +1,85 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(wml, -//WAPFORUM//DTD WML 1.1//EN, http://dark.wapit.com/vswap/tests/wap/DTD/wml11.dtd)
SAX.comment( (C) 1999, 2000 WAP Forum Ltd. All rights reserved )
SAX.startElement(wml)
SAX.characters(
, 1)
SAX.startElement(card, id='card1')
SAX.characters(
, 1)
SAX.startElement(onevent, type='onenterforward')
SAX.characters(
, 1)
SAX.startElement(go, href='/vswap/run/result.eml')
SAX.characters(
, 9)
SAX.startElement(postfield, name='var', value='$test')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='v', value='dark')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='ts', value='0003')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='tp', value='wml/state/variables/parsing/1')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='ti', value='1')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='expected', value='var:pass')
SAX.endElement(postfield)
SAX.characters(
, 1)
SAX.endElement(go)
SAX.characters(
, 1)
SAX.endElement(onevent)
SAX.characters(
, 1)
SAX.startElement(p)
SAX.characters(If automatic testing failed, s, 36)
SAX.startElement(anchor)
SAX.characters(Failed, 6)
SAX.startElement(go, href='/vswap/run/result.eml')
SAX.characters(
, 9)
SAX.startElement(postfield, name='SUBMIT', value='No')
SAX.endElement(postfield)
SAX.startElement(postfield, name='v', value='dark')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='ts', value='0003')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='tp', value='wml/state/variables/parsing/1')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='ti', value='1')
SAX.endElement(postfield)
SAX.characters(
, 9)
SAX.startElement(postfield, name='expected', value='var:pass')
SAX.endElement(postfield)
SAX.endElement(go)
SAX.endElement(anchor)
SAX.characters(., 1)
SAX.endElement(p)
SAX.characters(
, 1)
SAX.endElement(card)
SAX.characters(
, 2)
SAX.endElement(wml)
SAX.endDocument()

View File

@ -11,7 +11,9 @@ SAX.startElement(p)
SAX.characters(
, 3)
SAX.startElement(a, href='rubmenu.asp?CP=75008&#38;RB=01')
SAX.characters(Cinéma, 7)
SAX.characters(Cin, 3)
SAX.characters(é, 2)
SAX.characters(ma, 2)
SAX.endElement(a)
SAX.startElement(br)
SAX.endElement(br)

View File

@ -1,7 +1,7 @@
xmlSAXUserParseFile returned error 26
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(test, (null), (null))
SAX.internalSubset(test, , )
SAX.entityDecl(example, 1, (null), (null), <p>An ampersand (&#38;) may be escaped
numerically (&#38;#38;) or with a general entity
(&amp;amp;).</p>)
@ -9,6 +9,4 @@ SAX.getEntity(example)
SAX.startElement(test)
SAX.getEntity(example)
SAX.error: Entity 'example' not defined
SAX.endElement(test)
SAX.endDocument()
xmlSAXUserParseFile returned error 26

View File

@ -1,7 +1,7 @@
xmlSAXUserParseFile returned error 27
SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(test, (null), (null))
SAX.internalSubset(test, , )
SAX.elementDecl(test, 3, ...)
SAX.entityDecl(xx, 4, (null), (null), %zz;)
SAX.getParameterEntity(xx)
@ -9,11 +9,6 @@ SAX.entityDecl(zz, 4, (null), (null), <!ENTITY tricky "error-prone" >)
SAX.getParameterEntity(zz)
SAX.getParameterEntity(xx)
SAX.error: PEReference: %xx; not found
SAX.startElement(test)
SAX.characters(This sample shows a , 20)
SAX.getEntity(tricky)
SAX.warning: Entity 'tricky' not defined
SAX.characters( method., 8)
SAX.endElement(test)
SAX.endDocument()
xmlSAXUserParseFile returned error 27

View File

@ -476,7 +476,7 @@ processingInstructionDebug(void *ctx, const xmlChar *target,
void
cdataBlockDebug(void *ctx, const xmlChar *value, int len)
{
fprintf(stderr, "SAX.pcdata(%.20s, %d)\n",
fprintf(stdout, "SAX.pcdata(%.20s, %d)\n",
(char *) value, len);
}