Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > error when xml.dom parse file encoded in ISO-8859-15

Reply
Thread Tools

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

 
 
Harobed
Guest
Posts: n/a
 
      09-01-2003
>> Harobed <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
optparse: parse v. parse! ?? 7stud -- Ruby 3 02-20-2008 05:20 AM
How to parse a string like C program parse the command line string? linzhenhua1205@163.com C Programming 19 03-15-2005 07:41 PM
How to convert a base 64 encoded GIF image to a *.gif file? hb ASP .Net 6 09-28-2004 08:24 PM
How do i decode an ISO-8859-1 encoded text file? SHIRE Java 4 02-04-2004 04:03 PM
error when xml.dom parse file encoded in ISO-8859-15 Harobed Python 1 09-01-2003 09:23 PM



Advertisments