[Expat-discuss] Cannot parse simple xml

Regis St-Gelais regis.st-gelais at laubrass.com
Wed Aug 11 19:15:50 CEST 2004


My xml files usualy start with:
<?xml version="1.0" encoding="ISO-8859-1"?>

Maybee you can try it

Regis




  ----- Original Message ----- 
  From: Golibasku 
  To: expat-discuss at libexpat.org 
  Sent: Wednesday, August 11, 2004 12:56 PM
  Subject: Re: [Expat-discuss] Cannot parse simple xml



  ----- Original Message ----- 
  From: "Fred L. Drake, Jr." <fdrake at acm.org>
  To: "Golibasku" <ceo at absoft-net.com>; <expat-discuss at libexpat.org>
  Sent: Thursday, August 12, 2004 12:44 AM
  Subject: Re: [Expat-discuss] Cannot parse simple xml


  > On Wednesday 11 August 2004 12:27 pm, Golibasku wrote:
  >  > Hello,
  >  >     I try to parse the following document. But it always tell me "not
  >  > well-formed (invalid token) at line 1". What is the reason ??
  >  >
  >  > ----------xml document------------------
  >  > <?xml version=\"1.0\"?>
  >
  > The backslashes on this line are not allowed.

  It is just a copy and paste error. The document should be. Since I copy from
  my program source code, the backslashes are added

  <?xml version="1.0"?>
  <note>
  <to> Tove </to>
  <from> Jani </from>
  <heading> Reminder </heading>
  <body> Don't forget me this weekend </body>
  </note>

  _______________________________________________
  Expat-discuss mailing list
  Expat-discuss at libexpat.org
  http://mail.libexpat.org/mailman/listinfo/expat-discuss


More information about the Expat-discuss mailing list