1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00
libxml2/test/undeclared-entity.xml
Nick Wellnhofer 45fe9924f0 parser: Don't create reference in xmlLookupGeneralEntity
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.
2024-04-23 18:36:15 +02:00

7 lines
172 B
XML

<!-- Having an external DTD makes undeclared entities a warning. -->
<!DOCTYPE doc SYSTEM "foo">
<doc>
<elem attr="&undeclared;"/>
<elem>&undeclared;</elem>
</doc>