clevertrevor74
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.