Xpath親戚節點得到代碼筆記

一、parent::*html <a> <b></b> </b> 路徑表達式://b/parent::a  表示得到b節點的父節點元素a節點spa 二、ancestor::*code <a> <b> <c></c> </b> </a> 路徑表達式://c/ancestor::* 表示得到c節點的祖先節點元素a節點和b節點htm                    //c/an
相關文章
相關標籤/搜索