XPath with multiple contains on different elements XPath with multiple contains on different elements php php

XPath with multiple contains on different elements


You simply want

//person[contains(firstname, 'Kerr') and contains(lastname, 'och')]