public void testRemoveNamedItemNS1() throws Throwable {
  Document doc;
  NodeList elementList;
  Node testAddress;
  NamedNodeMap attributes;
  Attr newAttr;
  Node removedNode;
  doc=(Document)load("staffNS",builder);
  elementList=doc.getElementsByTagName("address");
  testAddress=elementList.item(1);
  attributes=testAddress.getAttributes();
  removedNode=attributes.removeNamedItemNS("http://www.usa.com","domestic");
  assertNotNull("retval",removedNode);
  newAttr=(Attr)attributes.getNamedItem("dmstc:domestic");
  assertNull("nodeRemoved",newAttr);
}

public void testRemoveNamedItemNS1 ( ) throws Throwable { Document doc ; NodeList elementList ; Node testAddress ; NamedNodeMap attributes ; Attr newAttr ; Node removedNode ; doc = ( Document ) load ( "staffNS" , builder ) ; elementList = doc . getElementsByTagName ( "address" ) ; testAddress = elementList . item ( 1 ) ; attributes = testAddress . getAttributes ( ) ; removedNode = attributes . removeNamedItemNS ( "http://www.usa.com" , "domestic" ) ; assertNotNull ( "retval" , removedNode ) ; newAttr = ( Attr ) attributes . getNamedItem ( "dmstc:domestic" ) ; assertNull ( "nodeRemoved" , newAttr ) ; }
runs the test case .
