📜  xml.etree.elementtree.parseerror: not well-formed (invalid token) - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:27.042000             🧑  作者: Mango

代码示例1
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)