XML: accessing all ancestors

I am missing a way to call all xml element’s ancestors like in

element.descendants()

but the other way round. Any thoughts?