XPath with multiple contains on different elements

前端 未结 1 1278
灰色年华
灰色年华 2021-01-04 12:36

Is it possible to have XPath expression with multiple contains of different element values?

XML


   

        
相关标签:
1条回答
  • 2021-01-04 12:52

    You simply want

    //person[contains(firstname, 'Kerr') and contains(lastname, 'och')]
    
    0 讨论(0)
提交回复
热议问题