Re: [xml] Entity problem



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>





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