开发者

how to get text representation from XDocument?

开发者 https://www.devze.com 2023-01-10 06:39 出处:网络
XmlDocument class has 开发者_Go百科a property \"Text\" whicn allows you to get text representation of XML (that is only the text part collected within all the nodes), how do I get it from XDocument?Ha

XmlDocument class has 开发者_Go百科a property "Text" whicn allows you to get text representation of XML (that is only the text part collected within all the nodes), how do I get it from XDocument?


Have you tried:

string text = doc.Root.Value;

?

0

精彩评论

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