Whats the best way to turn some Xml into a well indented/formatted Xml and access the individual lines of the resulting Xml afterwards? I guess the first part of the problem (indenting/formatting) can be solved using an XmlTextWriter or something similar. But how do I get an array of lines out of the result? Do I have to split the string again? Are there more elegant options?
Thanks in advance!