1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00
libxml2/result/noent/dtd12.sax2
Nick Wellnhofer dbaab1f369 Test SAX2 callbacks with entity substitution
This detects regressions like bug 760367.
2017-06-16 21:38:57 +02:00

16 lines
444 B
Plaintext

SAX.setDocumentLocator()
SAX.startDocument()
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.externalSubset(doc, , )
SAX.startElementNs(doc, NULL, NULL, 0, 0, 0)
SAX.getEntity(WhatHeSaid)
SAX.characters(He said , 8)
SAX.getEntity(YN)
SAX.characters("Yes", 5)
SAX.endElementNs(doc, NULL, NULL)
SAX.endDocument()