xsl-list
[Top] [All Lists]

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

2004-05-05 11:34:46
 

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

<Prev in Thread] Current Thread [Next in Thread>