org.exolab.adaptx.xpath
public final class XPathParser extends Object
Version: $Revision: 3633 $
Constructor Summary | |
---|---|
XPathParser()
Default constructor
|
Method Summary | |
---|---|
XPathExpression | createExpression(String xpath)
Creates an XPath expression from the given String
|
XPathExpression | createSelectExpression(String xpath)
Creates an XPath expression that will evaluate to a NodeSet.
|
static XPathParser | newInstance() |
void | setUseErrorExpr(boolean useErrorExpr)
Enables the use of an error expression. |
Parameters: xpath the String to create the expression from
UNKNOWN: the new expression
Parameters: xpath the String to create the select expression from.
Returns: the new expression
Parameters: useErrorExpr a boolean that when true will return an ErrorExpr instead of throwing an XPathException