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 URIXMLPlatformException
public 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 URIXMLPlatformException
Copyright © 2023. All rights reserved.