GNOME Bugzilla – Bug 750762
Entity references disappear after recovering from well-formedness errors
Last modified: 2021-07-05 13:25:34 UTC
If a non-well-formed document is parsed with the XML_PARSE_RECOVER option, entity references disappear after recovering: xmlSaveFile("output.xml", xmlReadFile("input.xml", 0, XML_PARSE_RECOVER)); input.xml: <?xml version="1.0"?> <a>x<y>z<b></c><c></b>x<y>z</a> output.xml: <?xml version="1.0"?> <a>x<y>z<b/><c/>xyz</a> (Version 2.9.2)
Created attachment 305048 [details] Patch to the version 2.9.2 (created with WinMerge)
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.