Xpath - Getting text from div
Hey folks,
I've tested my xpath in google docs and it's working fine however I can't get it to work in Rapidminer. In the Extract Information operator if I use the query "//h:div[2]/h:div/h:ul/h:li[1]/h:div" I get the result below:
I've tested my xpath in google docs and it's working fine however I can't get it to work in Rapidminer. In the Extract Information operator if I use the query "//h:div[2]/h:div/h:ul/h:li[1]/h:div" I get the result below:
<div xmlns="http://www.w3.org/1999/xhtml" class="stats-value">
<svg class="icon">
<use xmlns:xlink="urn:x-prefix:xlink" xlink:href="#trophy" />
</svg>
Text that I want
</div>
However I just want the text "Text that I want" not the surrounding html. So I try "//h:div[2]/h:div/h:ul/h:li[1]/h:div/text()". This doesn't give me an error but it's not returning anything, no text at all.
Any help is much appreciated.
Neil.
However I just want the text "Text that I want" not the surrounding html. So I try "//h:div[2]/h:div/h:ul/h:li[1]/h:div/text()". This doesn't give me an error but it's not returning anything, no text at all.
Any help is much appreciated.
Neil.