public interface XPathEngine
| Modifier and Type | Method and Description |
|---|---|
String |
evaluate(String xPath,
Node n)
Evaluates an XPath expression and stringifies the result.
|
String |
evaluate(String xPath,
Source s)
Evaluates an XPath expression and stringifies the result.
|
Iterable<Node> |
selectNodes(String xPath,
Node n)
Returns a potentially empty collection of Nodes matching an
XPath expression.
|
Iterable<Node> |
selectNodes(String xPath,
Source s)
Returns a potentially empty collection of Nodes matching an
XPath expression.
|
void |
setNamespaceContext(Map<String,String> prefix2Uri)
Establish a namespace context.
|
Iterable<Node> selectNodes(String xPath, Source s)
xPath - the XPath expressions - the XML source to apply the expression toString evaluate(String xPath, Source s)
xPath - the XPath expressions - the XML source to apply the expression toIterable<Node> selectNodes(String xPath, Node n)
xPath - the XPath expressionn - the XML source to apply the expression toString evaluate(String xPath, Node n)
xPath - the XPath expressionn - the XML source to apply the expression toCopyright © 2001–2025 XMLUnit. All rights reserved.