Use xpath expression to find 'directory' element.