Re: [xml] A question about '&'



On Fri, Apr 27, 2001 at 11:39:52AM -0700, Ming Lu wrote:
I'm very new to the xmllib2 library and would like a little  help if someone
has the time
I found that I had difficulty to include '&' as part of a node's contend.
For example:
I want to have a node like:
<node>Test&Test2</node>
intead of getting 
<node>Test&amp;Test2</node>
I got
<node>Test</node>
Could someone have a look and give me some advice? 

  Read the spec which says that & *has to* be escaped !

 http://www.w3.org/TR/REC-xml#syntax

  This is a very basic XML question and not related to libxml itself.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




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