public class XPathUtils extends Object
XPathUtils
...Constructor and Description |
---|
XPathUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getXPathExprFromNode(Node node)
Generates an XPath expression that will return only the given node as its
result.
|
public static String getXPathExprFromNode(Node node) throws IllegalArgumentException
node
- the node to generate an XPath expression for. This node must
be an element node, a text node, a document node, or a processing
instruction node.IllegalArgumentException
- if the given node is not an element,
text, document or PI node.Copyright © 2019 JBoss by Red Hat. All rights reserved.