Suppose I have the following XML:
Purgatorio Dante Alighieri<
I would think your own suggestion is correct, however the xml is not quite valid. If you are running the //book[title[@lang='it']] on [Your"XML"Here] then the free online xPath testers such as one here will find the expected result.
//book[title[@lang='it']]
[Your"XML"Here]