I need to compare 2 xml files and write the difference(newly added rows) in third xml file. The xml files has the result of a query. I found many third party tools but those are not specific for this condition. Any suggestions will he helpful.
xml1
<root>
<rdm>
<Model> aa</model>
</rdm>
<rdm>
<Model> bb </Model>
</rdm>
</root>
xml2
<root>
<rdm>
<Model> aa</model>
</rdm>
<rdm>
<Model> bb </Model>
</rdm>
<rdm>
<Model>cc</Model>
</rdm>
</root>
The xml3 should look like
<root>
<rdm>
<Model>cc</Model>
</rdm>
</root>