Can XPath do a foreign key lookup across two subtrees of an XML?

后端 未结 4 1690
不思量自难忘°
不思量自难忘° 2020-12-18 09:07

Say I have the following XML...


  
    
    
    

        
4条回答
  •  天涯浪人
    2020-12-18 09:34

    I think this will work:

    /root/base/tent[/root/bucket/tent/@key = @key ]/@color
    

提交回复
热议问题