mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00

We never want to create entity reference nodes if entity substitution is enabled. This also applies to undeclared entities.
24 lines
673 B
Plaintext
24 lines
673 B
Plaintext
SAX.setDocumentLocator()
|
|
SAX.startDocument()
|
|
SAX.comment( Having an external DTD makes undeclared entities a warning. )
|
|
SAX.internalSubset(doc, , foo)
|
|
SAX.externalSubset(doc, , foo)
|
|
SAX.startElementNs(doc, NULL, NULL, 0, 0, 0)
|
|
SAX.characters(
|
|
, 5)
|
|
SAX.getEntity(undeclared)
|
|
SAX.warning: Entity 'undeclared' not defined
|
|
SAX.startElementNs(elem, NULL, NULL, 0, 1, 0, attr='"/>
|
|
...', 0)
|
|
SAX.endElementNs(elem, NULL, NULL)
|
|
SAX.characters(
|
|
, 5)
|
|
SAX.startElementNs(elem, NULL, NULL, 0, 0, 0)
|
|
SAX.getEntity(undeclared)
|
|
SAX.warning: Entity 'undeclared' not defined
|
|
SAX.endElementNs(elem, NULL, NULL)
|
|
SAX.characters(
|
|
, 1)
|
|
SAX.endElementNs(doc, NULL, NULL)
|
|
SAX.endDocument()
|