Name

length: unsigned long

Synopsis

The total number of Node objects in the list.

Java binding

public long getLength( );

Java example

// Iterate over the attribute list
for (int i = 0; i < nnm.getLength( ); i++) {
    ...
}

Methods

The following methods are defined for the NamedNodeMap object:

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.