标签: c# xpath
需要xPath为给定的页面选择所有[aqua]节点[@ ID ='NeededPage']
Please take a look at the attached image
答案 0 :(得分:1)
您可以尝试:
//Page[@ID='NeededPage']/descendant-or-self::* | //Page[@ID='NeededPage']/ancestor::*
查看http://www.w3schools.com/xsl/xpath_axes.asp