public class DOMNodeUtils extends Object
| Constructor and Description |
|---|
DOMNodeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static DOMNode |
getElementAncestor(DOMNode node) |
static DOMNode |
getLowestCommonAncestor(Collection<DOMNode> nodes)
Gets the lowest common ancestor of a list of DOM nodes.
|
static DOMNode |
getLowestCommonAncestor(DOMNode node,
DOMNode... nodes) |
public static DOMNode getLowestCommonAncestor(Collection<DOMNode> nodes) throws WebAPIException
nodes - the collection of DOM nodesWebAPIException - if the node collections is empty.public static DOMNode getLowestCommonAncestor(DOMNode node, DOMNode... nodes) throws WebAPIException
WebAPIExceptionCopyright © 2020 OXPath Team. All rights reserved.