xdocument descendantsnodes vs nodes
问题 I'm trying to understand the difference between the extension method, DescendantsnNodes and the method, "Nodes" of the class XDocument. I can see that the DescendantsNodes should return all descendants of this document or element and Nodes should return all child nodes of this document or element. I don't understand what's the difference between "all child nodes" and "all descendants". could someone please clarify this? 回答1: A child node would be a node which is directly "underneath" a