vendredi 29 juillet 2016

Parse XML file python

I have an XML file (made with ONIXEDIT) with doctype :

<!DOCTYPE ONIXMessage SYSTEM "http://www.editeur.org/onix/2.1/reference/onix-international.dtd>

the file contains XHTML entities, when i try to parse using xml.etree.ElementTree, it gives this error :

xml.etree.ElementTree.ParseError: undefined entity &nbsp;

How can i solve this ?

Aucun commentaire:

Enregistrer un commentaire