} if(declaresNamespacePrefixes()) { for(Iterator i = namespaceMappings.entrySet().iterator(); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String prefix = entry.getKey().toString(); String ns = entry.getValue().toString(); QName attrName = new QName(prefix, "http: AttrImpl attr = new AttrImpl(attrName, ns); map.setNamedItem(attr); }
    public NamedNodeMap getAttributes() {        NamedNodeMapImpl map = new NamedNodeMapImpl();        long start = firstChildID();        if (getAttributesCount() == 0)            return map;        for (long i = start; i < start + children; i++) {            Node child = ownerDocument.getNode(i);            if (child != null && child.getNodeType() == Node.ATTRIBUTE_NODE)                map.setNamedItem(child);        }        return map;    }