javax.xml.xpath
Interface XPathExpression
- AndExpr, Constant, Expr, FunctionCall, IdFunction, OrExpr, Pattern, Root, Selector, Steps, UnionExpr, VariableReference
public interface XPathExpression
 An XPath expression.
- 1.3
|  String | evaluate(Object item) Evaluates this expression against the specified context, returning the
 result as a string.
 | 
|  Object | evaluate(Object item, QName returnType) Evaluates this expression against the specified context.
 | 
|  String | evaluate(InputSource source) Evaluates this expression against the specified context, returning the
 result as a string.
 | 
|  Object | evaluate(InputSource source, QName returnType) Evaluates this expression against the specified context.
 | 
evaluate
public String evaluate(Object item)
            throws XPathExpressionException Evaluates this expression against the specified context, returning the
 result as a string.
- item- the evaluation context
evaluate
public Object evaluate(Object item,
                       QName returnType)
            throws XPathExpressionException Evaluates this expression against the specified context.
- item- the evaluation context
- returnType- the desired return type
evaluate
public String evaluate(InputSource source)
            throws XPathExpressionException Evaluates this expression against the specified context, returning the
 result as a string.
- source- the source to load the context from
evaluate
public Object evaluate(InputSource source,
                       QName returnType)
            throws XPathExpressionException Evaluates this expression against the specified context.
- source- the source to load the context from
- returnType- the desired return type