Constructor and Description |
---|
SaxonXPath(String path,
String contextVar,
Map<String,String> namespaceMap)
Construct given an XPath expression string.
|
Modifier and Type | Method and Description |
---|---|
XPathEngine |
execute(Cur c,
XmlOptions options) |
List |
selectNodes(Object node)
Select all nodes that are selectable by this XPath
expression.
|
List |
selectPath(Object node) |
public XPathEngine execute(Cur c, XmlOptions options)
public List selectNodes(Object node)
union
operator
(denoted with the pipe '|' character).
NOTE: Param node must be a DOM node which will be used
during the xpath execution and iteration through the results.
A call of node.dispose() must be done after reading all results.
node
- The node, nodeset or Context object for evaluation.
This value can be null.List
of all items selected
by this XPath expression.