public class XPathUtils
extends java.lang.Object
XPathUtils
...Constructor and Description |
---|
XPathUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getXPathExprFromNode(org.w3c.dom.Node node)
Generates an XPath expression that will return only the given node as its
result.
|
public static java.lang.String getXPathExprFromNode(org.w3c.dom.Node node) throws java.lang.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.java.lang.IllegalArgumentException
- if the given node is not an element,
text, document or PI node.Copyright ? 2003, 2013 IBM. All Rights Reserved.