Hi Saumya,
I used the logic which you are using(XPath in Assignment Action Block) and I got the xml with only one node of the data and not all the matching nodes.
This is because the Asignment Action Block will not iterate on the nodes found by the XPath but will assign the first matched node.
Thus XSL would be better to use than iterating over the XML using the Iterator.
Refer to the following Link for more information:
Optimizing BLS performance of large XML process with XSLT
If still you want to use the Iteration method then you can refer to the following Link for improving the
performance:
Optimizing BLS Performance for XML Handling in SAP MII
Regards,
Rohit Negi.