I have an xml document like this,
<Customer ID = "000A551"
Name = "Robert"
Salaried = "yes"
Area = "VA"
/>
Please note the how attributes are line-breaked and white-spaced for the editing and reading convenience. When using XDocument or XmlDocument to modify this document whole formatting goes away. Looks like PreserveWhitespace will only handle significant whitespace.
Is there any way out there to maintain line-breaks and whitespaces ?