I’d like to use tabs, or at least more than 2 spaces per indent level. IIRC there are options available to adjust this when using serialization to write a class out; but I don’t see any way to adjust the behavior when calling MyDataSet.WriteXml(filename).
I’d like to use tabs, or at least more than 2 spaces per indent
Share
You need to use a
XmlTextWriterif you want to influence the layout of your XML being saved:and then write out your data set using that
XmlTextWriter: