I want to convert my lxml.etree._element into an XMLobject
xmlFilePath = "/data/equifax-voi-response.xml"
dom = ET.parse(newXMLFilePath)
XMLObject = xmltodict.parse(dom)
I have been doing this, but it is not working. Error message is:
parser.Parse(xml_input, True)
TypeError: a bytes-like object is required, not 'lxml.etree._ElementTree'
How to convert it?
Aucun commentaire:
Enregistrer un commentaire