public class XPathEngine extends Object
| Modifier and Type | Method and Description |
|---|---|
static XPathEngine |
getInstance()
Return the
XPathEngine singleton. |
NodeList |
selectNodes(Node contextNode,
String[] xPathFragments)
Execute the XPath statement relative to the context node.
|
Node |
selectSingleNode(Node contextNode,
String[] xPathFragments)
Execute the XPath statement relative to the context node.
|
public static XPathEngine getInstance()
XPathEngine singleton.public Node selectSingleNode(Node contextNode, 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 NodeList selectNodes(Node contextNode, 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