How can I search only XDocument children and not all of its descendants?

In the documentation I can not find anything but XDocument.Descendants () . Is there any way to do this?

+6
c # xml linq linq-to-xml xelement
source share
1 answer

what you are looking for might be XDocument.Elements() . MSDN link .

+15
source share

All Articles