clear() public method

public clear ( ) : int
return int
 public void test_XMLAttributes_clear1()
 {
     XMLAttributes xa = new  XMLAttributes();
       XMLTriple xt2 = new  XMLTriple("name2", "http://name2.org/", "p2");
       int i = xa.add( "name1", "val1", "http://name1.org/", "p1");
       i = xa.add(xt2, "val2");
       i = xa.add( "noprefix", "val3");
       assertTrue( xa.getLength() == 3 );
       assertTrue( xa.isEmpty() == false );
       i = xa.clear();
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( xa.getLength() == 0 );
       assertTrue( xa.isEmpty() == true );
       xa = null;
       xt2 = null;
 }