Code example for NamedNodeMap

Methods: getLength

0
     */ 
    public int getLength() { 
        if (_map == null) {
            return 0; 
        } 
        return _map.getLength();
    } //-- getLength 
 
    /** 
     * Returns the name of the attribute at the given index. 
     * 
     * @param i The position of the attribute in the list. 
     * @return The attribute name as a string, or null if there is no attribute 
     *         at that position. 
     */ 
    public String getName(final int i) {
        if (_map != null) {
            Attr attr = (Attr) _map.item(i);
            return attr.getName();
        } 
        return null;