Hi Adithya,
For this specific case, you can add additional parameters as rowset to the rowsets of a single document. Use append xml option for appending the same.
So, get a document with the xml, add all additional outputs as "Rowset" to the document and return this document as a single xml.
Hope this helps.
Wram Regards,
Swaroop