plugin-xml
plugin-xml copied to clipboard
Failed to parse XML containing attributes with special characters
bracketSameLine
No response
printWidth
No response
tabWidth
No response
xmlWhitespaceSensitivity
strict
xmlSelfClosingSpace
No response
Input XML
<?xml version="1.0" encoding="utf-8" ?>
<node attributeá="value" />
Current output XML
[error] file.xml: Error: unexpected character: ->á<-
Expected output XML
XML should be parsed, as the same XML is parsed correctly by lxml despite special characters:
>>> from lxml import objectify
>>> xml = objectify.fromstring('<node attributeá="value" />')
>>> xml.attrib
{'attributeá': 'value'}
>>>
CC @moylop260 @luistorresm
I've opened an issue on the upstream parser here: https://github.com/SAP/xml-tools/issues/407.
Closing this as it's being tracked over on that other issue. Sorry about this @luisg123v I'm at the mercy of the parser. If you feel like a contribution, that'd be a great place.
@kddnewton roger, I'll be following that other issue.
Thanks a lot.