Package org.apache.tika.sax.xpath
Class XPathParser
java.lang.Object
org.apache.tika.sax.xpath.XPathParser
Parser for a very simple XPath subset. Only the following XPath constructs
(with namespaces) are supported:
.../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 Summary
-
Method Summary
-
Constructor Details
-
XPathParser
public XPathParser() -
XPathParser
-
-
Method Details
-
addPrefix
-
parse
Parses the given simple XPath expression to an evaluation state initialized at the document node. Invalid expressions are not flagged as errors, they just result in a failing evaluation state.- Parameters:
xpath
- simple XPath expression- Returns:
- XPath evaluation state
-