Best LINQ-to-XML query to select nodes based on properties of descendant nodes?
问题 I have the following XML document: <?xml version="1.0" encoding="UTF-8"?> <FamilyTree> <Parent name="Ken"> <Child name="Lorna"> <Grandchild name="Andrew"/> <Grandchild name="Brian"/> </Child> <Child name="Mike"> <Grandchild name="Ann"/> <Grandchild name="Beth"/> </Child> </Parent> <Parent name="Norma"> <Child name="Owen"> <Grandchild name="Charles"/> </Child> <Child name="Peter"> <Grandchild name="Charlotte"/> </Child> </Parent> <Parent name="Quinn"> <Child name="Robert"> <Grandchild name=