我有这样的XML。
但我只需要选择节点。
我找到了如何选择单个节点。
我该如何获得这两个节点?
<root>
<content>
....
</content>
<index>
....
</index>
<keywords>
....
</keywords>
</root>
但我只需要选择
和
<content>
....
</content>
<index>
....
</index>
我找到了如何选择单个节点。
XElement Content = new XElement("content", from el in xml.Elements() select el.Element("content").Elements());
我该如何获得这两个节点?