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 expressionitem
- the expression context
evaluate
public Object evaluate(String expression,
Object item,
QName returnType)
throws XPathExpressionException
Evaluates an expression.
expression
- the expressionitem
- the expression contextreturnType
- 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 expressionsource
- 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 expressionsource
- the source to load the expression context fromreturnType
- the desired return type
reset
public void reset()
Resets the environment.