I am creating a lightweight editor in C# and would like to know the best method for converting a string into a nicely formatted XML string. I would hope that there\'s a pub
If you just need to escape XML characters the following might be useful:
string myText = "This & that > <> <"; myText = System.Security.SecurityElement.Escape(myText);