libsbmlcs.XMLNode.equals C# (CSharp) Method

equals() public method

public equals ( XMLNode other ) : bool
other XMLNode
return bool
        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;
        }

Same methods

XMLNode::equals ( XMLNode other, bool ignoreURI ) : bool

Usage Example

 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;
 }