public void selectXPath(String s) throws PilotException{ x = new XPath(); try { xpe = x.compileXPath(s); }catch (XPath.XPathException e){ xpe = null; throw new PilotException("Invalid XPath expression");
public void selectXPath(String s) throws XPathParseException{  try{ parser p = new parser(new StringReader(s)); xpe = (com.ximpleware.xpath.Expr) p.parse().value; } catch(Exception e){ throw new XPathParseException(e.toString());
public void selectXPath(String s) throws PilotException{	x = new XPath();	try {		xpe = x.compileXPath(s);	}catch (XPath.XPathException e){		xpe = null;		throw new PilotException("Invalid XPath expression");	}}