public interface XPathEngine
Modifier and Type | Method and Description |
---|---|
java.lang.String |
evaluate(java.lang.String xPath,
org.w3c.dom.Node n)
Evaluates an XPath expression and stringifies the result.
|
java.lang.String |
evaluate(java.lang.String xPath,
javax.xml.transform.Source s)
Evaluates an XPath expression and stringifies the result.
|
java.lang.Iterable<org.w3c.dom.Node> |
selectNodes(java.lang.String xPath,
org.w3c.dom.Node n)
Returns a potentially empty collection of Nodes matching an
XPath expression.
|
java.lang.Iterable<org.w3c.dom.Node> |
selectNodes(java.lang.String xPath,
javax.xml.transform.Source s)
Returns a potentially empty collection of Nodes matching an
XPath expression.
|
void |
setNamespaceContext(java.util.Map<java.lang.String,java.lang.String> prefix2Uri)
Establish a namespace context.
|
java.lang.Iterable<org.w3c.dom.Node> selectNodes(java.lang.String xPath, javax.xml.transform.Source s)
java.lang.String evaluate(java.lang.String xPath, javax.xml.transform.Source s)
java.lang.Iterable<org.w3c.dom.Node> selectNodes(java.lang.String xPath, org.w3c.dom.Node n)
java.lang.String evaluate(java.lang.String xPath, org.w3c.dom.Node n)
void setNamespaceContext(java.util.Map<java.lang.String,java.lang.String> prefix2Uri)
prefix2Uri
- maps from prefix to namespace URI.