Compile an XPath expression for later evaluation.
If expression contains any {@link XPathFunction}s, they must be available via the {@link XPathFunctionResolver}. An {@link XPathExpressionException} will be thrown if the XPathFunctioncannot be resovled with the XPathFunctionResolver.
If expression is null, a NullPointerException is thrown.
@param expression The XPath expression.
@return Compiled XPath expression.
@throws XPathExpressionException If
expression cannot be compiled.
@throws NullPointerException If
expression is
null.