I\'m trying to write to an XML file to the isolated storage but I would like to format it like this:-
If, like me, you're implementing your own XmlWriter you can do:
XmlWriter
var myXmlWriter = new MyXmlWriter(stream, System.Text.Encoding.UTF8) { Formatting = Formatting.Indented };
or do this.Formatting = Formatting.Indented in it's constructor.
this.Formatting = Formatting.Indented