开发者

XmlDocument class is removing formatting, c#, .NET

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜