public int getIndex(string name)
{
int ret = libsbmlPINVOKE.XMLNode_getIndex(swigCPtr, name);
if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
public void test_XMLNode_getIndex() { string xmlstr = "<annotation>\n" + " <test xmlns=\"http://test.org/\" id=\"test\">test</test>\n" + "</annotation>"; XMLNode node = new XMLNode(); assertTrue( node.getIndex( "test") == -1 ); node = null; node = XMLNode.convertStringToXMLNode(xmlstr,null); assertTrue( node.getIndex( "test") == 0 ); node = null; }