Ben | 9 May 17:15
Favicon

Re: Getting info from an XML file that has invalid character data in it (and how to specify recover option)

> 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

Gmane