I have tried refraining from asking for help, but I have had enough! I am trying to get the child elements of a node; all except one with a particular id. This is what I have thus far:
//*[@id='a']/*[@id!='b']
It works to some extent. It gets all child elements of ‘a’ that do not have an id of ‘b’, but I want it to get all child elements, regardless whether it has an id attribute or not.
Any ideas?
Try using
not(), eg