开发者

XPath how to search for a string iphone

开发者 https://www.devze.com 2023-03-29 12:04 出处:网络
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?

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

精彩评论

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