[Expat-discuss] Cannot parse simple xml

Golibasku ceo at absoft-net.com
Wed Aug 11 18:56:43 CEST 2004


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



More information about the Expat-discuss mailing list