If you use DOM methods to put the data into the document then the escaping and unescaping will be
done for you.
Using string concatenation and the like forces you to read and adhere to the specs very carefully to
ensure validity of the resultant document (eg. '<' becomes '<' etc.).
Chris.
"AJ Brown" <aj*****************@hotmail.com> wrote in message
news:s9LSc.16242$Yf6.15006@lakeread03...
How does one allow the use of ampersands (or other special characters
for that matter) within Element text and Attribute text?
I have problems using LoadXml from a string "<text value="Jack &
Jill"/>" into an XmlDocument.
I can't for the life of me find a switch that turns off this feature of
the parser.
-AJ
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004