Hi Gyanesh,
Here is the thing. Just create an document which is to exactly in form of the XML you wanted.
Results → document name & document
Total Marks (This is documentlist with following fields. Same as the Result Document List in the Adapter service )
Name Maths Chemistry Physics → are the String values.
Next you need to do is to map the db out put to this document. After this use
the DocumenttoXMLString Service and you will have the xml string. There is no need you to go to Loop
When you use the document to XML string service following will be the o/p
<Total Marks>
</Total Marks>
<Total Marks>
</Total Marks>
<Total Marks>
</Total Marks>
#Integration-Server-and-ESB#Flow-and-Java-services#webMethods