Name
previousSibling: Node
Synopsis
Returns the preceding node in the sibling list. If
this node is the head of the sibling list, it returns null
.
Java binding
public Node getPreviousSibling( );
Java example
// List the value of a node in reverse order
for (Node nd = ndDump.getLastChild( ); nd != null;
nd = nd.getPreviousSibling( )) {
if (nd.getNodeValue( ) != null) {
System.out.println(nd.getNodeValue( ));
}
}