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

Martin v. Löwis martin at v.loewis.de
Mon Sep 1 23:23:22 CEST 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





More information about the Python-list mailing list