Suppose I have the following XML:
Purgatorio Dante Alighieri<
Try to use this xPath expression:
//book/title[@lang='it']/..
That should give you all book nodes in "it" lang