Link to home
Start Free TrialLog in
Avatar of clevertrevor74
clevertrevor74Flag for Germany

asked on

How can i compare two XmlNodes regarding the content?

I will compare two XmlNodes in C# regarding the content. Let´s say i have two XmlNode´s:

            XmlDocument docA = new XmlDocument();
            docA.LoadXml("<Result name="power" value="3">");
            XmlNode nodeA = docA.SelectSingleNode("/*");
           
            XmlDocument docB = new XmlDocument();
            docB.LoadXml("<Result value="3" name="power">");
            XmlNode nodeB = docB.SelectSingleNode("/*");

Is there any function to compare theses nodes to get the result that they are the same (regarding content)?
The order of the attribute should have no matter.
SOLUTION
Avatar of Anurag Thakur
Anurag Thakur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial