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'...