Hello World Samples
Find software programs and code snippets that help you get started.
Monday, 11 March 2013
Code snippet: Convert from C# string to XML string
string
stringToConvert
= "
&<>'\"
";
string
xmlString
= System.Security.SecurityElement.Escape(
stringToConvert
);
xmlString
afterwards contains
"&<>'""
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment