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

Harobed stephane at
Tue Sep 2 00:28:41 CEST 2003

>> Harobed <stephane at> 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.

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