code: public String getExpandedAttributeName(Attr attr)
    {
  
      String namespace = getNamespaceOfNode(attr);
  
      return (null != namespace)
             ? namespace + ":" + getLocalNameOfNode(attr)
             : getLocalNameOfNode(attr);
    }
docs: Returns the attribute name with the namespace prefix (if any) replaced
  by the Namespace URI it was bound to. This is not a standard
  representation of a node name, but it allows convenient
  single-string comparison of the "universal" names of two nodes.
  
  @param attr Attr to be examined
  
  @return String in the form "namespaceURI:localname" if the node
  belongs to a namespace, or simply "localname" if it doesn't.
  @see #getExpandedElementName