Hello i search an example for Browse a tree

How to get from a child, the parent's parent


Thanks