public class NodeExtractor extends Object
Node
from a parent node given a list of xpaths using DOM methods,
not XPathExpression
objects.
This utility exists because the Node
objects produced by Axis and JAX-WS do not seem to
be compatible with XPathExpression
.
Constructor and Description |
---|
NodeExtractor() |
Modifier and Type | Method and Description |
---|---|
Node |
extractNode(Node parentNode,
List<String> xpath)
Extracts the node specified by the xpath list.
|
public Node extractNode(Node parentNode, List<String> xpath)
parentNode
- the node to extract the child node from.xpath
- list of non-null local element names that make up the child node's xpath.Node
, or null
if no such child node exists.Copyright © 2017. All Rights Reserved.