I would like to avoid having specific code for XMLSearch in the generic dom node validator. Do you think it's possible to move your code inside XMLSearcherForJava class? If you have no time to see that, I will try to see that ASAP.