I have a XML named 'fruits.XML' as follows
<fruits>
<fruitbasket>
<id>123 </id>
<apple>Apple 1 </apple>
<apple>Apple 2 </apple>
</fruitbasket>
<fruitbasket>
<id> 1 </id>
<apple>Apple 2 </apple>
<apple>Apple 3 </apple>
</fruitbasket>
</fruits>
How to find the baskets with Apple 2 in Xquery? I get a multiple element error when i use the matches in the Query.