Synopsis
Returns the next node in the sibling list. If this
node is the end of the list, nextSibling
returns null
.
Java binding
public Node getNextSibling( );
Java example
// List the contents of a node
for (Node nd = ndDump.getFirstChild( ); nd != null;
nd = nd.getNextSibling( )) {
if (nd.getNodeValue( ) != null) {
System.out.println(nd.getNodeValue( ));
}
}