0
嗨,我有这样一个一个xml:XPATH保留标签
<root>
<parent1>
<leaf1>value1</leaf1>
<leaf2>value1</leaf2>
<leaf3>value1</leaf3>
<leaf4>value1</leaf4>
</parent1>
<parent2>
<leaf1>value1</leaf1>
<leaf2>value1</leaf2>
<leaf3>value1</leaf3>
<leaf4>value1</leaf4>
...
<leafN>value1</leafN>
</parent2>
</root>
我需要提取此作为输出:
<leaf1>value1</leaf1>
<leaf2>value1</leaf2>
<leaf3>value1</leaf3>
<leaf4>value1</leaf4>
...
<leafN>value1</leafN>
我怎么能写和XPath查询给我的可能性跳过一些节点...例如:leaf1和leaf3?