protected function _getParentNode($node) { $parent = $node->xpath(".."); return array_shift($parent); }