I am trying to write an XPath to pull the value 4.4690 from the tag below. Any help will be appreciated.
<div id=currency_converter_result>10 BRL = <span class=bld>4.4690 USD</span>
<input type=submit value="Convert">
</div>
查找跨度的文本,然后使用substring-before()
提取USD
之前的文本部分:
substring-before(//div[@id="currency_converter_result"]/span[@class="bld"], " USD")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.