G
Guest
When adding special characters to an XML document they are escaped to distiguish them from their normal use within the body of the document
e.g. & becomes &
< becomes < etc
My problem is that when adding text to my XML it is failing to escape apostrophe into the form &apos
When I do this manually the adding to the document results in the escaping of the ampersand giving me &apos
The text I am adding is to an XMLDocument and I'm using the InnerText property of the selected node
Am I doing something wrong and if not does anyone know of a work around
e.g. & becomes &
< becomes < etc
My problem is that when adding text to my XML it is failing to escape apostrophe into the form &apos
When I do this manually the adding to the document results in the escaping of the ampersand giving me &apos
The text I am adding is to an XMLDocument and I'm using the InnerText property of the selected node
Am I doing something wrong and if not does anyone know of a work around