Playing Chicken With Common Sense

Escape XML string in C#

This is a simple way of escaping special characters inside of strings that you might want to insert into XML.  I have used other techniques which require more coding so keep this handy!

You will use the following method: SecurityElement.Escape(string text).

see MSDN documentation

  • 0 Comments
  • E-mail
  • Kick it!
  • Shout it
  • Bookmark and Share

Comments

Control panel

RecentComments

Comment RSS