Matching a node based on a sibling's value with XPath

前端 未结 3 1674
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 18:29

Having a XML document like this:



  
             


        
3条回答
  •  無奈伤痛
    2020-11-30 19:15

    You can also filter a parent element by its children :

    /records/record[record-type[text()='A']]/name

提交回复
热议问题