Replaced an deprecated XPathException.