Answers for "xml.etree.elementtree.parseerror: not well-formed (invalid token)"

0

xml.etree.elementtree.parseerror: not well-formed (invalid token)

It seems to complain about \x08 you will need to escape that.

Edit:

Or you can have the parser ignore the errors using recover

from lxml import etree
parser = etree.XMLParser(recover=True)
etree.fromstring(xmlstring, parser=parser)
Posted by: Guest on March-18-2021

Code answers related to "xml.etree.elementtree.parseerror: not well-formed (invalid token)"

Browse Popular Code Answers by Language