首页 > xpath如何选取一个节点的后邻兄弟节点
<a id="a"> </a> <b> </b>
如上形式,可以得到a,怎么选择到b
选择全部b元素:
b
//a/following-sibling::*
只选一个b元素:
//a/following-sibling::*[1]