Hi @martinblech,
it was brought to my attention that xmltodict and Expat >=2.4.5 are not compatible. The incompatibility has two halves:
The API docs of XML_ParserCreateNS say:
This means that you should pick a character for sep that can't be part of an URI.
Colon can appear in a URI (RFC 3986), so a colon cannot be used as a namespace separator or there will be false positives. Use of " " (space) or "\n" (line feed) would work.
Would you be up for picking a different character for a namespace separator?
Thanks and best, Sebastian
CC libwbxml/libwbxml#76
CC libexpat/libexpat#572 (comment)
Hi @martinblech,
it was brought to my attention that xmltodict and Expat >=2.4.5 are not compatible. The incompatibility has two halves:
:(colon) for a namespace separator at multiple places, for instance:xmlnsattribute values for security since 2.4.5 and PR [CVE-2022-25236] lib: Protect against insertion of namesep characters into namespace URIs libexpat/libexpat#561.The API docs of
XML_ParserCreateNSsay:Colon can appear in a URI (RFC 3986), so a colon cannot be used as a namespace separator or there will be false positives. Use of
" "(space) or"\n"(line feed) would work.Would you be up for picking a different character for a namespace separator?
Thanks and best, Sebastian
CC libwbxml/libwbxml#76
CC libexpat/libexpat#572 (comment)