javax.xml.xpath
Interface XPath
- XPathImpl
 Interface to the XPath evaluation environment.
- 1.3
evaluate
public String evaluate(String expression,
                       Object item)
            throws XPathExpressionException Evaluates an expression and returns the result as a string.
- expression- the expression
- item- the expression context
evaluate
public Object evaluate(String expression,
                       Object item,
                       QName returnType)
            throws XPathExpressionException Evaluates an expression.
- expression- the expression
- item- the expression context
- returnType- the desired return type
evaluate
public String evaluate(String expression,
                       InputSource source)
            throws XPathExpressionException Evaluates an expression and returns the result as a string.
- expression- the expression
- source- the source to load the expression context from
evaluate
public Object evaluate(String expression,
                       InputSource source,
                       QName returnType)
            throws XPathExpressionException Evaluates an expression.
- expression- the expression
- source- the source to load the expression context from
- returnType- the desired return type
reset
public void reset()
 Resets the environment.