Extension of PHP's XMLReader class in order to integrate a getNodePath() method that returns the XPath of the current node