Hi
I would really appreciate any assistanance with the following situation.
Lets say i have 2+ documents A,B,...n that i need to merge together, such
that the resulting documents contains totals or sum of the common elements.
For example:
Doc A
<employees>
<emp ID="1" Items="20">emp 1 name</emp>
<emp ID="2" Items="15">emp 2 name</emp>
<emp ID="3" Items="5">emp 3 name</emp>
</employees>
Doc B
<employees>
<emp ID="1" Items="15">emp 1 name</emp>
<emp ID="2" Items="5">emp 2 name</emp>
<emp ID="5" Items="55">emp 5 name</emp>
</employees>
Doc A + Doc B
<employees>
<emp ID="1" Items="35">emp 1 name</emp>
<emp ID="2" Items="20">emp 2 name</emp>
<emp ID="3" Items="5">emp 3 name</emp>
<emp ID="3" Items="55">emp 3 name</emp>
</employees>
How may i best go about this?, considering perfomance as well.
Thank you in advance.