开发者

XmlDocument class is removing formatting, c#, .NET

开发者 https://www.devze.com 2022-12-10 11:12 出处:网络
i was wondering if anyone knows how to stop xmldocument.Save(开发者_如何学Go) from reformatting the document.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消