且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

XPath:获取节点中最后一个兄弟节点的值

更新时间:2023-01-20 22:45:37

我不确定我是否理解您的问题.如果您试图验证最后的 NamesEval 是否包含字符串Steve",您可以使用以下 XPath 表达式:

I am not sure I understand your question. If you are trying to verify that the last NamesEval contains the string "Steve", you can use the following XPath expression:

contains((//my:NamesEval)[last()],'Steve')