给出以下XML结构
<html> <body> <div> <span>Test: Text2</span> </div> <div> <span>Test: Text3</span> </div> <div> <span>Test: Text5</span> </div> </body> </html>
什么是最好的XPath查询以查找以Test开头的文本的任何跨度?
//span[starts-with(.,'Test')]
参考文献:
http://www.w3.org/TR/xpath/#function-starts-with
https://developer.mozilla.org/en-US/docs/Web/XPath/Functions/starts-with