Tag Archives: XmlDocument

Format an XML file so it looks nice in C#

This example shows how to format an XML file. When the computer processes an XML file, it doesn’t care about formatting. It doesn’t need indentation and new lines to make the file look nice. As long as the file is … Continue reading

Posted in strings, XML | Tagged , , , , , , , , , , | Leave a comment

Use objects to make an XML document in C#

This example shows how to use the XML DOM (document object model) to make an XML document. There are several ways to build an XML document. The example Build a formatted XML document in memory in C# shows one way … Continue reading

Posted in XML | Tagged , , , , , , , , , , | 1 Comment