i was wondering if anyone knows how to stop xmldocument.Save() from reformatting the document.
Its not that the document is not formatted correctly with respect to XML, the particular document i am working with has lots of white space and things like that which - upon save - is all being removed.
Set the PreserveWhiteSpace property to true
before you save the document.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With