public class XPathParser extends Object
.../node()
.../text()
.../@*
.../@name
.../*...
.../name...
...//*...
...//name...
In addition the non-abbreviated .../descendant::node()
construct can be used for cases where the descendant-or-self axis
used by the ...//node()
construct is not appropriate.
Constructor and Description |
---|
XPathParser() |
XPathParser(String prefix,
String namespace) |
Modifier and Type | Method and Description |
---|---|
void |
addPrefix(String prefix,
String namespace) |
Matcher |
parse(String xpath)
Parses the given simple XPath expression to an evaluation state
initialized at the document node.
|
public Matcher parse(String xpath)
xpath
- simple XPath expressionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.