XPath SelectNodes in .NET

前端 未结 4 1775
太阳男子
太阳男子 2020-12-28 17:29

   
     
      
    
  
  
   
    
   
            


        
4条回答
  •  猫巷女王i
    2020-12-28 18:09

    Simply: a leading // means "at any level" in the same document as the selected node.

    From the spec:

    • //para selects all the para descendants of the document root and thus selects all para elements in the same document as the context node
    • .//para selects the para element descendants of the context node

提交回复
热议问题