Optimise XPath queries by specifying a target node