[xsl] Q: Using C#.net, how to convert ASCII text into XML acceptable text?

Subject: [xsl] Q: Using C#.net, how to convert ASCII text into XML acceptable text?
From: "Shenan Hawkins" <shenan@xxxxxx>
Date: Wed, 5 May 2004 14:34:46 -0400
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 "&amp;"... I know I could do a manual .replace method call, but I want something intrinsic/better)
 
 
TIA!,

	Shenan

Current Thread