Java VTD-XML has the following API
class AutoPilot{
declareVariableExpr(java.lang.String varName, java.lang.String varExpr);
}
Register the binding between a variableExpr name and variableExpr expression
I have successfully used it for simple variable bindings like:
abc => "some value"
and Autopilot can run expressions like
ap.selectXpath("concat(/a/b/text(), $abc)");
ap.evalXPathToString()
My question is:
The API says it binds a variable to a variable expression. how to bind to a variable expression? and what is the usage of binding to an 'expression'?