Replaced a deprecated XPathException.