libsbml.XMLToken.addNamespace C# (CSharp) Method

addNamespace() public method

public addNamespace ( string uri ) : int
uri string
return int
        public int addNamespace(string uri)
        {
            int ret = libsbmlPINVOKE.XMLToken_addNamespace__SWIG_1(swigCPtr, uri);
            return ret;
        }

Same methods

XMLToken::addNamespace ( string uri, string prefix ) : int

Usage Example

コード例 #1
0
 public void test_XMLToken_newSetters_addNamespaces1()
 {
     XMLTriple triple = new  XMLTriple("test","","");
       XMLAttributes attr = new  XMLAttributes();
       XMLToken token = new  XMLToken(triple,attr);
       assertTrue( token.getNamespacesLength() == 0 );
       assertTrue( token.isNamespacesEmpty() == true );
       int i = token.addNamespace( "http://test1.org/", "test1");
       assertTrue( i == libsbml.LIBSBML_OPERATION_SUCCESS );
       assertTrue( token.getNamespacesLength() == 1 );
       assertTrue( token.isNamespacesEmpty() == false );
       attr = null;
       triple = null;
       token = null;
 }
All Usage Examples Of libsbml.XMLToken::addNamespace