What is the right xpath query to get only the value: 5.3 ?
<span class="bla">5.3<span>开发者_如何学JAVA;/10</span></span>
This works for me:
//span[@class="bla"]/text()
What is the right xpath query to get only the value: 5.3 ?
<span class="bla">5.3<span>开发者_如何学JAVA;/10</span></span>
This works for me:
//span[@class="bla"]/text()
精彩评论