Search methods rewritten
Added method to know if a specific element has ancestors with a specified name