error when xml.dom parse file encoded in ISO-8859-15

Harobed stephane at harobed.org
Mon Sep 1 18:28:41 EDT 2003


>> Harobed <stephane at harobed.org> writes:

>> I have a xml file encode in ISO-8859-15. When xml.dom parse this file, it
>> send this error : xml.parsers.expat.ExpatError: not well-formed (invalid
>> token): line 9, column 46
>> 
>> Line 9 content some accent char. I would like solve this error.
>You should correct the error in your XML file, by adding an xml header
>to it.
>Regards,
>Martin

I've adding this line <?xml version="1.0" encoding="iso-8859-1"?> to my
xml file source. Now, the parser work perfectly.

Thanks you




More information about the Python-list mailing list