Need to merge attributes from 2 XMLs into one

sistkarthik

New Member
I have two XMLs like this.XML1\[code\]<RPM> <CAI ID="101" Name="Guaranteed Payments"/> <CAI ID="102" Name="Sports Recreation"/> </RPM>\[/code\]XML2\[code\]<RPM> <CAI ID="102" Active="False"/> <CAI ID="103" Active="True"/> </RPM>\[/code\]I have to write a C# code which will merge the attributes of the two XMLs into one, based on the CAI ID. For example, both XMLs has a node with CAI ID 102, so the final XML will be,RESULT\[code\] <RPM> <CAI ID="101" Name="Guaranteed Payments"/> <CAI ID="102" Name="Sports Recreation" Active="False"/> <CAI ID="103" Active="True"/> </RPM>\[/code\]
 
Back
Top