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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to