I am adding two files to one and sending to receiver in this if I get N as occurance of file1 and M as occurance of file2 then I need to get N+M occurance for received file
for exaple if I have 2 occurance and file 1 and 3 occurance for file 2 at this time I need to get 5 as occurance for receiver file
for exaple if I am having two files like this
file1
<e1>
<a1>
<b1>
</e1>
<e1>
<a2>
<b2>
</e1>
file2
<e2>
<d>
</e2>
OUTPUT FILE
<out>
<a1>
<b1>
</out>
<out>
<a2>
<b2>
</out>
<out>
<d>
<f>
</out>