Hi Rohan!
I just mean that you can insert MTB in module sequence one more time with another prefix and use it for calling external XSL transformation:
So, your first MTB will convert flat structure into XML and the second one will apply transformation to first module's result.
And with XSLT you can modify XML structure according to your requirement.
Regards, Evgeniy.