As per my requirement I will receive two xml inputs . Each xml will have multiple orders.We have to check if the ShipGroupId element value in the Input2 document matches attribute <"SHIP_GROUP"> in the Order section of Input 1document then will multiply all shipunit ids quantity and weight in all order sections and we have to do sum of the all the weights. Please refer to the attached input and output xmls
Input1.txt
Input2.txt
Output.txt