for the xml
data1 data2
This syntax seemed to work for cElementTree
ET.fromstring("").find('.//b/..')
No going to base parent, and using double slash then single slash in path. (would have posted as a comment to above thread but it seems I have no privilege to)