Xdocument, picking the right nodes
问题 I'm trying to construct a linq query that pulls all nodes that have a particular element. In the case below, you'll notice that the second entry has a few extra elements: DisplayOnSignup, SortOrder, etc. I'd like the linq to give me all entry nodes that have a SortOrder element. The xml doc looks like this: <?xml version="1.0" encoding="UTF-8"?> <feed > <entry> <link href="/ws/customers/testacct/lists/removed" rel="edit"></link> <id>http://api.constantcontact.com/ws/customers/testacct/lists