xpath to select nodes excluding by attribute value list

Viewed 22959

I would like to know if there is shorter approach to selecting a list of nodes ignoring the ones that have an attribute value specified in a list

Working example:

/item[not(@uid='id1') and not(@uid='id2')]

Desired alternative:

/item[not(@uid in('id1','id2'))]
4 Answers
Related