I have XML structure like below. XML is very large I am just showing related part.
<data>
<book>
<name xml:lang='Eng'>someValue</name>
</book>
</data>
I have to find out attribute value using node value. I have values of all book names in array. So I have value someValue using it I have to find out value of attribute xml:lang. Expected output is Eng in this case. I searched for answer but all are for reverse case that is get node value using attribute value