📜  xpath 开始于和结束于 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:20.400000             🧑  作者: Mango

代码示例1
$x('//span[@class="text" and starts-with(.,"A")]/text()')
#Delivers texts of certain html element(span here) which start with "A"
$x('//span[@class="text" and ends-with(.,"A")]/text()')
#Delivers texts of certain html element(span here) which ends with "A" ;)