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
It sounds like you want to load the XML into an XmlTextWriter objects and set the Formatting and Indentation properties:
writer.Formatting = Formatting.Indented; writer.Indentation = 1; writer.IndentChar = '\t';