Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I search just the children of an XDocument, rather than all of its descendants?

I can't seem to find anything other than XDocument.Descendants () in the documentation. Is there any way to do this?

like image 346
Matthew Avatar asked Feb 06 '10 01:02

Matthew


1 Answers

what you're looking for might be XDocument.Elements(). MSDN Reference.

like image 160
Dynami Le Savard Avatar answered Oct 17 '22 14:10

Dynami Le Savard