Reputation: 39916
XmlDocument class has 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?
Upvotes: 1
Views: 629
Reputation: 1500855
Have you tried:
string text = doc.Root.Value;
?
Upvotes: 4