johnlemon
johnlemon

Reputation: 21479

What is the proper xpath query for this specific html section?

What is the right xpath query to get only the value: 5.3 ?

<span class="bla">5.3<span>/10</span></span>

Upvotes: 3

Views: 55

Answers (1)

Felix Kling
Felix Kling

Reputation: 816700

This works for me:

//span[@class="bla"]/text()

Upvotes: 4

Related Questions