[lxml-dev] Getting info from an XML file that has invalid character data in it (and how to specify recover option)
Ben
bba at inbox.com
Fri May 9 17:15:31 CEST 2008
> Stefan wrote:
>
> Not sure if this is just a "find-a-short-example" error, but you parse
> the filename, not the file here. This should read
>
> Xml = etree.parse(XmlFileName, parser)
(LOL) This is indeed a "find-a-short-example" error - which is what you use when you are a sysadmin. Now it works and gets me past the invalid characters too.
Thanks for lxml
More information about the lxml-dev
mailing list