i was wondering if anyone knows how to stop xmldocument.Save(开发者_如何学Go) 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.
set PreserveWhiteSpace to true
精彩评论