开发者

XPath how to search for a string iphone

I'm using hpple to parse content from a html page. I want to find the string 'Course Content' and select the paragraph after it. How is this possible?

At present i have this code which return the paragraph at index 0 however its not good enough开发者_运维知识库.

Thanks for any help ..


/html/body
     /div[@id='wrap']
     /div[@id='inner']
     /div[@id='content']
     /div[@id='main-content']
     /div[@id='content_div_16973']
     /h3[.='Course Content']/following-sibling::p[1]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜