Name
lastChild: Node
Synopsis
Returns a pointer to the end of a given Node
object’s linked list of child
nodes. If the node does not have children, it returns null
.
Java binding
public Node getLastChild( );
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( )); } }
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.