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 XDocum开发者_运维技巧ent.Descendants ()
in the documentation. Is there any way to do this?
what you're looking for might be XDocument.Elements()
. MSDN Reference.
精彩评论