I want to map the following input structure to output structure,
<MSG1>
<Input_Rec>
<Vendor>1</Vendor>
<Invoice>
<Amt>10</Amt>
<Num>1</Num>
</Invoice>
<Invoice>
<Amt>20</Amt>
<Num>2</Num>
</Invoice>
</Input_Rec>
</MSG1>
as the following
<MSG2>
<Output_Rec>
<Vendor>1</Vendor>
<Amt>10</Amt>
<Num>1</Num>
</Output_Rec>
<Output_Rec>
<Vendor>1</Vendor>
<Amt>20</Amt>
<Num>2</Num>
</Output_Rec>
</MSG2>
Is this feasible using message mapping? or do we have to use XSLT or JAVA mapping?