public Object createXPath(String xpath) throws XPathException {
return xpath;
}
public XResult evaluateXPath(Node node, Object xpath, NamespaceContext nsContext) throws XPathException {
try {
PrefixResolver pr = nsContext!=null ? new NSResolver(nsContext) : null;
XObject res = XPathAPI.eval(node,(String)xpath,pr);
return convertResult(res);
} catch(Exception e) {
throw new XPathException(e,"Error while evaluating XPath {0}",xpath.toString()); // $NLS-AbstractXercesDriver.ErrorwhileevaluatingXPath0-1$
}