I'm working with an xml that gets pretty deep. I'm able to extract a certain element via:
parent_element = tree.find(f'.//ns:{tag}[@eId="{eId}"]', namespaces = nsmap)
Is there any way I can reconstruct the full Xpath of the returned element?
Thanks