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 executedXMLPlatformExceptionpublic 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 executedXMLPlatformException