3 ms·
Alternatively //root/item[key[text()="Name"]]/value/text()
by icebraining 7y ago
Alternatively
//root/item[key[text()="Name"]]/value/text()
- benibela 7y agoYou usually do not need to use text() in xpath, so this should work the same: //root/item[key="name"]/value