I have a XDocument that is formatted like this:
<tag1><innertag Name="sample">This is text</innertag></tag1>
After load and save it changes to the below format:
<tag1>
<innertag Name="sample">This is text</innertag>
</tag1>
How do I retain the above format?
If I use SaveOptions
during save, there is nil indent and the whole file is in a single line. I want the above format to be retained. Is it possible ?