XPath軸定位(軸和步)

XPath軸(Axes) 軸的意思是相對於當前結點的節點集 軸名稱 結果 ancestor 選取當前結點的所有先輩(父、祖父等) ancestor-or-self 選取當前節點的所有先輩(父、祖父等)以及當前節點本身 attribute 選取當前節點的所有屬性。@id等價於attribute::id child 選取當前節點的所有子元素,title等價於child:title descendant
相關文章
相關標籤/搜索