You shoulld look into the XmlSerializer class.
-----Original Message-----
From: Shenan Hawkins [mailto:shenan(_at_)ims(_dot_)ca]
Sent: Wednesday, May 05, 2004 2:35 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Q: Using C#.net, how to convert ASCII text into XML
acceptable text?
Hopefully I can get some help with this - sorry if it's not the correct
mailing-list...
Let's assume I have one C# statement:
string myString = "This & That";
Is there a built in method/function that I can call that will turn the
string contents into something that will work in an XML file? (for instance,
convert "&" to "&"... I know I could do a manual .replace method call,
but I want something intrinsic/better)
TIA!,
Shenan