Well with XPath
..
or
parent::node()
gives you the parent node. If you know you are looking for a particular parent element then you can do
parent::foo
to select the parent element named 'foo'.
Then there is the ancestor axis so
ancestor::foo
selects any ancestor elements named 'foo'.
Depending on what you need you can of course also access a grandparent with
../..
or
parent::foo/parent:bar
If that does not help then you need to show us samples of your XML and tell us which nodes you want to access.
Martin Honnen --- MVP XML
My blog