tags:

views:

13

answers:

1

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?

+1  A: 

Have you tried:

string text = doc.Root.Value;

?

Jon Skeet
thanks, let me try that, looks like it is what am looking for, I thought value represents only current text value of element, not its decendents, but I saw msdn it is what I am looking for.
Akash Kava