XPath with multiple contains on different elements

前端 未结 1 1294
灰色年华
灰色年华 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)
提交回复
热议问题