[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] Q: Using C#.net, how to convert ASCII text into XML acceptable text?
From: "Kenny Akridge" <kenny@xxxxxxxxxxxxxxxxx>
Date: Wed, 5 May 2004 14:41:49 -0400

You shoulld look into the XmlSerializer class.

-----Original Message-----
From: Shenan Hawkins [mailto:shenan@xxxxxx] 
Sent: Wednesday, May 05, 2004 2:35 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
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 "&amp;"... I know I could do a manual .replace method call,
but I want something intrinsic/better)
 
 
TIA!,

	Shenan


Current Thread
Keywords
xml