I know this is a simple question, but I can\'t figure it out. Consider the following simple XML document:
I realize this is an old question, but I recently ran into a similar problem and used the following xpath to solve it:
/root/*[not(name()='a')]