public bool equals(XMLNode other)
{
bool ret = libsbmlPINVOKE.XMLNode_equals__SWIG_1(swigCPtr, XMLNode.getCPtr(other));
if (libsbmlPINVOKE.SWIGPendingException.Pending) throw libsbmlPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
XMLNode::equals ( |
public void test_XMLNode_equals() { string xmlstr = "<annotation>\n" + " <test xmlns=\"http://test.org/\" id=\"test\">test</test>\n" + "</annotation>"; XMLNode node = new XMLNode(); XMLNode node1 = XMLNode.convertStringToXMLNode(xmlstr,null); assertEquals( false, node.equals(node1) ); node = null; XMLNode node2 = XMLNode.convertStringToXMLNode(xmlstr,null); assertEquals( true, node2.equals(node1) ); node1 = null; node2 = null; }