public class XPathEngine
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static XPathEngine |
getInstance()
Return the
XPathEngine singleton. |
org.w3c.dom.NodeList |
selectNodes(org.w3c.dom.Node contextNode,
java.lang.String[] xPathFragments)
Execute the XPath statement relative to the context node.
|
org.w3c.dom.Node |
selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String[] xPathFragments)
Execute the XPath statement relative to the context node.
|
public static XPathEngine getInstance()
XPathEngine singleton.public org.w3c.dom.Node selectSingleNode(org.w3c.dom.Node contextNode,
java.lang.String[] xPathFragments)
contextNode - the node relative to which the XPath statement will be executedxmlField - the field containing the XPath statement to be executednamespaceResolver - used to resolve namespace prefixes to the corresponding namespace URIXMLPlatformExceptionpublic org.w3c.dom.NodeList selectNodes(org.w3c.dom.Node contextNode,
java.lang.String[] xPathFragments)
contextNode - the node relative to which the XPath statement will be executedxmlField - the field containing the XPath statement to be executednamespaceResolver - used to resolve namespace prefixes to the corresponding namespace URIXMLPlatformExceptionEclipseLink 2.6.3, "build v20160428-59c81c5" API Reference