XPathEvaluator xpe = new XPathEvaluator(ss);
// Declare a variable for use in XPath expressions
StandaloneContext sc = (StandaloneContext)xpe.getStaticContext();
Variable wordVar = sc.declareVariable("word", "");
// Compile the XPath expressions used by the application
XPathExpression findLine =
xpe.createExpression("//LINE[contains(., $word)]");