Re: [xml] Entity problem



Thank you.
 
You are right. I have tested in IE and Firefox. Both browsers complain about missing semicolon.
 
> Subject: Re: [xml] Entity problem
> From: david hagood gmail com
> To: guotaotony hotmail com
> CC: xml gnome org
> Date: Mon, 17 Nov 2008 06:58:36 -0600
>
> On Mon, 2008-11-17 at 10:37 +0000, Guo Tao wrote:
> > Hi all,
> >
> > I am new to libxml2 library. I use xmlReadMemory to parse the
> > following string:
> >
> > <url>http://www.apple.com/hello.jsp?a=&b=&c=</url>
> >
> That's not valid XML. You have to escape ampersands in XML just like you
> do in HTML, otherwise they are treated as entity references.
>
> > I donot know how to overcome it. Anyone can help me?
> >
>
> <url>http://www.apple.com/hello.jsp?a=&amp;b=&amp;c=</url>
>
>



Share your beautiful moments with Photo Gallery. Windows Live Photo Gallery


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]