code: public Node getNamedItemNS(String namespaceURI, String localName)
    {
         Node retNode = null;
         for (int n = dtm.getFirstAttribute(element); n != DTM.NULL;
                         n = dtm.getNextAttribute(n))
         {
           if (localName.equals(dtm.getLocalName(n)))
           {
             String nsURI = dtm.getNamespaceURI(n); 
             if ((namespaceURI == null && nsURI == null)
                    || (namespaceURI != null && namespaceURI.equals(nsURI)))
             {
               retNode = dtm.getNode(n);
               break;
             }
           }
         }
         return retNode;
    }
docs: Retrieves a node specified by local name and namespace URI. HTML-only
  DOM implementations do not need to implement this method.
  @param namespaceURI The namespace URI of the node to retrieve.
  @param localName The local name of the node to retrieve.
  
  @return A <code>Node</code> (of any type) with the specified local
  name and namespace URI, or <code>null</code> if they do not
  identify any node in this map.
  @since DOM Level 2