I want to write something of the sort:
//a[not contains(@id, 'xx')]
(meaning all the links that there 'id' attribute doesn't contain the string 'xx')
I can't find the right syntax.
not() is a function in XPath (as opposed to an operator), so
not()
//a[not(contains(@id, 'xx'))]
2.1m questions
2.1m answers
60 comments
57.0k users