lxml unicode entity parse problems
- by Jon Hadley
I'm using lxml as follows to parse an exported XML file from another system:
xmldoc = open(filename)
etree.parse(xmldoc)
But im getting:
lxml.etree.XMLSyntaxError: Entity
'eacute' not defined, line 4495,
column 46
Obviously it's having problems with unicode entity names - but how would i get round this? Via open() or parse()?