gets the XPath of an XML node