using XPath how to select elements with absent attribute

Posted by Vincenzo on Stack Overflow See other posts from Stack Overflow or by Vincenzo
Published on 2010-03-31T15:18:28Z Indexed on 2010/03/31 15:43 UTC
Read the original article Hit count: 329

Filed under:
|

I would like to select all elements that have certain attribute or don't have it at all:

//job[@salary<"100" or !@salary]

This code is not valid. Which one is? Thanks!

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xpath