1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00
libxml2/result/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

8 lines
182 B
XML

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