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
//a[not(contains(@id, 'xx'))]