我有需要使用 XDocument 处理的 xml 文档
<elem c="98500000">
<elem c="98510000">
<elem c="98511000"/>
<elem c="98512000"/>
<elem c="98513000">
<elem c="98513100"/>
<elem c="98513200"/>
<elem c="98513300"/>
<elem c="98513310"/>
</elem>
<elem c="98514000"/>
</elem>
</elem>
我尝试通过选定的节点属性获取最小子树,例如 98512000, 98513300, 98514000 :
<elem c="98500000">
<elem c="98510000">
<elem c="98512000"/>
<elem c="98513000">
<elem c="98513300"/>
</elem>
<elem c="98514000"/>
</elem>
</elem>