Reputation: 17422
<a>
<b/>
<c/>
<d/>
<b/>
<e/>
</a>
How do I select those children of "a" that are not "b"?
Upvotes: 65
Views: 48729
Reputation: 23644
Xpath will look:
a/*[name(.) !='b']
So, select children of 'a' whose name is not equal 'b'
Upvotes: 3