mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-25 06:03:34 +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.
7 lines
172 B
XML
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>
|