xml-js icon indicating copy to clipboard operation
xml-js copied to clipboard

Allow parsing non-compliant XML with spaces in tags

Open ghost opened this issue 5 years ago • 1 comments

We recently found an API which returned mostly-compliant XML, but one tag was provided with spaces in it, e.g. <some tag>...</some tag>. While this isn't compliant XML, it would be useful to be able to still parse this XML despite the parsing error, maybe with an optional setting.

It's understandable if you don't want to do this, though, as this is still invalid XML.

ghost avatar Apr 21 '20 19:04 ghost

{
  "some tag": "...",
  "#omit-xml-declaration": "yes"
}

may be converted to xml

<some__EA__tag>...</some__EA__tag>

javadev avatar Apr 28 '23 22:04 javadev