I want to write something of the sort:
//a[not contains(@id, \'xx\')]
(meaning all the links that there \'id\' attribute doesn\'t contain t
not() is a function in xpath (as opposed to an operator), so
//a[not(contains(@id, 'xx'))]