有没有办法检查为什么 xPathNavigator.evaluate() 调用没有返回节点?
例如给定以下 xml 文档:
<Vehicles>
<car>
<wheels>4</wheels>
<seats>5</seats>
</car>
</Vehicles>
和以下 xPath 表达式:
//Vehicles[((car[wheels = 4 and seats = 2]))]
我想要某种迹象表明节点没有被选中是因为“seats = 2”子句而不是因为轮子的数量。
这在某种程度上可能吗?