I have a scenario where i need to take parent node x ml using two child node values example
<books>
<book>
<id>3</id>
<name>sai</name>
</book>
<book>
</book>
<book>
</book>
</books>
what I need to do is select the book X ML which has the matching child nodes i tried with this approach it is not working //id[text(),'1'] and name[text(),'sail']/..