public abstract int getLength ()

The number of pairs (name and namespaceURI) in the list. The range of valid child node indices is 0 to length-1 inclusive.