开发者

how to get text representation from XDocument?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜