1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00
libxml2/result/xml2.sax2
Nick Wellnhofer fdc5ff3657 parser: Always throw entity errors if external DTD is loaded
When parsing with XML_PARSE_DTDLOAD, missing entities are always an
error.

Also consolidate behavior when validating. See b717abdd.
2024-05-03 11:52:54 +02:00

22 lines
677 B
Plaintext

SAX.setDocumentLocator()
SAX.startDocument()
SAX.internalSubset(test, , )
SAX.elementDecl(test, 3, ...)
SAX.entityDecl(xx, 4, (null), (null), %zz;)
SAX.getParameterEntity(xx)
SAX.entityDecl(zz, 4, (null), (null), <!ENTITY tricky "error-prone" >)
SAX.getParameterEntity(zz)
SAX.getParameterEntity(xx)
SAX.getParameterEntity(zz)
SAX.entityDecl(tricky, 1, (null), (null), error-prone)
SAX.getEntity(tricky)
SAX.externalSubset(test, , )
SAX.startElementNs(test, NULL, NULL, 0, 0, 0)
SAX.characters(This sample shows a , 20)
SAX.getEntity(tricky)
SAX.characters(error-prone, 11)
SAX.reference(tricky)
SAX.characters( method., 8)
SAX.endElementNs(test, NULL, NULL)
SAX.endDocument()