Traverse back in an XML Tree


How to read an XML document as shown in the figure.
From bottom to top direction using XML Object. First take the parent node of
of the current node and move upward direction. We can pass
the values of array index or any values that we need
to traverse in this direction. Any suggestion will really
appreciable.

I’m really confusing how to get the parent.

thanks in advance
:alien: