public static XPathExpression compileXPath(XPath xpath,String expr){
  try {
    return xpath.compile(expr);
  }
 catch (  XPathExpressionException e) {
    throw new XmlException(e);
  }
}

public static XPathExpression compileXPath ( XPath xpath , String expr ) { try { return xpath . compile ( expr ) ; } catch ( XPathExpressionException e ) { throw new XmlException ( e ) ; } }
compiles an xpath expresssion .
