You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Jeff Paquette <pa...@mediaone.net> on 2001/06/18 21:47:19 UTC

> not getting escaped

I have to represent the string "<Local Servers>" in xml. I create a node
with the following code:

          name = xmlDoc.createElement("Name");
          name.appendChild(xmlDoc.createTextNode(f->name));

where f->name is "<Local Servers>". Using the code from the DOMPrint sample,
the text output is:

<Name>&lt;Local Servers></Name>

Notice that the first character in "<Local Servers>" was escaped, but the
final character was not. This occurs using both 1.4 and 1.5 of xerces.

Any ideas why this is happening?

--
Jeff Paquette
paquette at mediaone.net
http://www.atnetsend.net



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org