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