implementing basic XPath for the filesystem