Compare two xml messages but ignore some nodes



I have two XML messages like so:


xml1:



<root>
<elementA>something</elementA>
<elementB>something else</elementB>
<elementC>yet another thing</elementC>
</root>


xml2:



<root>
<elementA>something different</elementA>
<elementB>something else</elementB>
<elementC>yet another thing</elementC>
</root>


I want to compare two xml contents, but I don't care about elementA. I'm using the XML Diff that comes from Microsoft. Is there any way to do like that?


No comments:

Post a Comment