【发布时间】:2014-03-21 19:22:51
【问题描述】:
我在野外看到过类似的问题,但由于某种原因,我还没有找到正确的方法。
所以我得到了this page
在主要项目下有 2 篇文章(商店项目)
- eZ Publish - 男士夹克
- eZ Publish - iPhone 4 手机壳
我想获取包含男夹克的文章中的输入(文本)字段
我已经尝试过什么:
//article[ //h3[ text() = "eZ Publish - Man jacket"] ]//input
//article[ //h3[contains(text(), "eZ Publish - Man jacket")] ]//input
//article[ contains( .//h3[ text() = 'eZ Publish - Man jacket' ] ) ]//input
下一个有效:
//h3[text()='eZ Publish - Man jacket']/../../..//input
...但这不是一种选择...
知道我做错了什么吗?
【问题讨论】:
标签: xml text xpath path contains