public final class XPathParser
extends java.lang.Object
Constructor and Description |
---|
XPathParser()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
XPathExpression |
createExpression(java.lang.String xpath)
Creates an XPath expression from the given String
|
XPathExpression |
createSelectExpression(java.lang.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.
|
public XPathExpression createExpression(java.lang.String xpath) throws XPathException
xpath
- the String to create the expression fromXPathException
public XPathExpression createSelectExpression(java.lang.String xpath) throws XPathException
xpath
- the String to create the select expression from.XPathException
public static XPathParser newInstance()
public void setUseErrorExpr(boolean useErrorExpr)
useErrorExpr
- a boolean that when true will return
an ErrorExpr instead of throwing an XPathException