@Override public Node removeNamedItemNS(String namespaceURI,String name) throws DOMException {
  if (isReadOnly()) {
    String msg=DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN,"NO_MODIFICATION_ALLOWED_ERR",null);
    throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR,msg);
  }
  int i=findNamePoint(namespaceURI,name);
  if (i < 0) {
    String msg=DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN,"NOT_FOUND_ERR",null);
    throw new DOMException(DOMException.NOT_FOUND_ERR,msg);
  }
  NodeImpl n=(NodeImpl)nodes.get(i);
  nodes.remove(i);
  return n;
}

@ Override public Node removeNamedItemNS ( String namespaceURI , String name ) throws DOMException { if ( isReadOnly ( ) ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , "NO_MODIFICATION_ALLOWED_ERR" , null ) ; throw new DOMException ( DOMException . NO_MODIFICATION_ALLOWED_ERR , msg ) ; } int i = findNamePoint ( namespaceURI , name ) ; if ( i < 0 ) { String msg = DOMMessageFormatter . formatMessage ( DOMMessageFormatter . DOM_DOMAIN , "NOT_FOUND_ERR" , null ) ; throw new DOMException ( DOMException . NOT_FOUND_ERR , msg ) ; } NodeImpl n = ( NodeImpl ) nodes . get ( i ) ; nodes . remove ( i ) ; return n ; }
introduced in dom level 2 . < p > removes a node specified by local name and namespace uri .
