I have been looking at different methods for creating an XML document using: XmlDocument, XDocument and XmlWriter. It seems like I have to use XmlWriterSettings along with XmlWriter in order to specify the Indent and IndentChars.
This MSDN Article specifies that the default IndentChars value is Two spaces.
My question: Is it possible to save an XML file using XmlDocument or XDocument where I can specify the indent value for the saved XML file?
If it is possible to do so without using XmlWriter, can someone provide an example or documentation?