Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Alternatively

  //root/item[key[text()="Name"]]/value/text()


You usually do not need to use text() in xpath, so this should work the same:

  //root/item[key="name"]/value




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: