Modifier and Type | Method and Description |
---|---|
Node |
Node.nextNodeSibling()
Returns the next node that is sibling to this node (ie shares the same parent node), or returns null if none exists.
|
Node |
Element.nextNodeSibling()
Returns the next node that is a sibling (shares the name parent) or returns null if no such sibling exists.
|
Node |
Node.previousNodeSibling()
Returns the previous node that is sibling to this node (ie shares the same parent node), or returns null if none exists.
|
Node |
Element.previousNodeSibling()
Returns the previous node that is a sibling (shares the name parent) or returns null if no such sibling exists.
|
Node |
Element.toNode()
Returns this element cast to type Node.
|
Modifier and Type | Method and Description |
---|---|
List<Node> |
Node.getChildNodes()
Returns a list of child nodes or an empty list if none exist.
|
List<Node> |
Element.getChildNodes()
Returns a list of child nodes, or an empty list if no child nodes exist.
|