mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +03:00
45fe9924f0
This should only be done in xmlParseReference. The handling of undeclared entities is still somewhat inconsistent. In element content we create references even if entity substitution is enabled. In attribute values undeclared entities are always ignored.
24 lines
578 B
Plaintext
24 lines
578 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.startElement(doc)
|
|
SAX.characters(
|
|
, 5)
|
|
SAX.getEntity(undeclared)
|
|
SAX.warning: Entity 'undeclared' not defined
|
|
SAX.startElement(elem, attr='')
|
|
SAX.endElement(elem)
|
|
SAX.characters(
|
|
, 5)
|
|
SAX.startElement(elem)
|
|
SAX.getEntity(undeclared)
|
|
SAX.warning: Entity 'undeclared' not defined
|
|
SAX.reference(undeclared)
|
|
SAX.endElement(elem)
|
|
SAX.characters(
|
|
, 1)
|
|
SAX.endElement(doc)
|
|
SAX.endDocument()
|