Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

Tip: Quick Way to Escape Special Characters in an XML Document

Learn to use the SecurityElement's Escape method of the System.Security namespace to escape all the special characters in an XML file.


advertisement

We can use the SecurityElement's Escape method of the System.Security namespace to escape all the special characters in an XML file. Code snippet below:

string escapedstring = System.Security.SecurityElement.Escape(inputXMLString); 

...inputXMLString  contains the XML with special characters.



 

Visit the DevX Tip Bank

 



   
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date