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
Hi,

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.

Thank you

 
Reply With Quote
 
 
 
 
Martin v. =?iso-8859-15?q?L=F6wis?=
Guest
Posts: n/a
 
      09-01-2003
Harobed <> 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

 
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 0 09-01-2003 10:28 PM



Advertisments