Code example for NamedNodeMap

Methods: item

0
    if (current != null)
      { 
        NamedNodeMap attrs = current.getAttributes();
        if (attrs == null)
         return null; 
        Node attr = attrs.item(index);
        return attr.getLocalName();
      } 
    return super.getAttributeLocalName(index);
  } 
 
  public String getAttributeNamespace(int index)
  { 
    if (current != null)
      { 
        NamedNodeMap attrs = current.getAttributes();
        if (attrs == null)
         return null; 
        Node attr = attrs.item(index);
        return attr.getNamespaceURI();
      }