Skip to content

printer xml BUGFIX encode namespace values - #2648

Open
affan-arch wants to merge 1 commit into
CESNET:masterfrom
affan-arch:xml-print-ns-escape
Open

affan-arch wants to merge 1 commit into
CESNET:masterfrom
affan-arch:xml-print-ns-escape

Conversation

@affan-arch

Copy link
Copy Markdown

xml_print_ns() printed the namespace URI into xmlns="..." with a bare %s, but opaque and anydata nodes keep the URI exactly as parsed, with entity references already decoded, so <any xmlns="urn:tests:types"><x xmlns="urn:x&quot;/&gt;&lt;y xmlns=&quot;urn:y&amp;"/></any> was printed back as <x xmlns="urn:x"/><y xmlns="urn:y&"/> with a y element nobody sent, so the URI now goes through lyxml_dump_text() the same way xml_print_attr() already handles attribute values, and the new case in test_anydata fails without the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant