in reply to finding XPATH for any node in a XML file
$node->nodePath() [download]
(And if you ever need relative paths, solution)