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!
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!
//job[@salary<"100" or not(@salary)]
There isn't a not operator in xpath. See http://www.w3schools.com/xpath/xpath_operators.asp