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

Discussion in 'Python' started by Harobed, Sep 1, 2003.

  1. Harobed

    Harobed Guest

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


    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
     
    Harobed, Sep 1, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. SHIRE
    Replies:
    4
    Views:
    2,837
    SHIRE
    Feb 4, 2004
  2. Franck DARRAS
    Replies:
    12
    Views:
    667
    Jim Higson
    Aug 23, 2004
  3. Harobed
    Replies:
    1
    Views:
    387
    Martin v. =?iso-8859-15?q?L=F6wis?=
    Sep 1, 2003
  4. Peter Jacobi
    Replies:
    13
    Views:
    875
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Aug 3, 2004
  5. Zvi
    Replies:
    0
    Views:
    574
Loading...

Share This Page