PHP XPath结尾于 [英] PHP XPath ends-with
本文介绍了PHP XPath结尾于的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Possible Duplicate:
How to use XPath function in a XPathExpression instance programatically?
我正在尝试查找嵌套表的所有行,这些行包含一个ID以'_imgProductImage'结尾的图像.
I'm trying to find all of the rows of a nested table that contain an image with an id that ends with '_imgProductImage'.
我正在使用以下查询:
"//tr[/td/a/img[ends-with(@id,'_imgProductImage')]"
我遇到错误: xmlXPathCompOpEval:函数结束-找不到
我相信我的Google搜索表明这应该是有效的查询/功能.如果不是"ends-with",我要寻找的实际功能是什么?
My google searches i believe say this should be a valid query/function. What's the actual function i'm looking for if it's not "ends-with"?
推荐答案
查看全文