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;
?
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;
?
精彩评论