[Gatling] Need to send bulk data in request in XML file

I need to delete multiple records and need to pass multiple row ids in a bulk request (XML file). ATM I am only passing a single id. I have all the row ids in an ArrayBuffer.
Can someone please tell me how to pass all the ids in an XLM?

Methode:

Current methode:

feed(Config.UuidFeeder)
  .feed(uploadIdFeeder)
  .exec(http("IDAPi")
    .post(Config.baseUrl)
    .body(ElFileBody("API.xml")).asXml
    .check(regex(s"""<ID>(.*)</ID>""").saveAs("UploadID"))
    .check(bodyString.saveAs("ResponseBody"))
  ) .exec(session => {
  println("ResponseBody Get: " + session("ResponseBody").as[String]);
  addUploadDataRunId(session("UploadID").as[Int])
  session

API.xml :

<Input>
    <Header>
        <ServiceSessionKey>${ServiceSessionKey}</ServiceSessionKey>
        <RequestID>${uuid}</RequestID>
        <Updates>false</Updates>
        <Timeout>25</Timeout>
        <PageSize>1000</PageSize>
        <WaitForResponse>true</WaitForResponse>
    </Header>
    <Parameters>
        <UploadIDArray>
            <Id>${Id}</Id>
        </UploadIDArray>
    </Parameters>
</Input>
**What I need to send XMl file: All the ids that stored in** ArrayBuffer to XPML 
 <Header>
 <ServiceSessionKey>${ServiceSessionKey}</ServiceSessionKey>
 <RequestID>${uuid}</RequestID>
 <Updates>false</Updates>
 <Timeout>25</Timeout>
 <PageSize>1000</PageSize>
 <WaitForResponse>true</WaitForResponse>
 </Header>
 <Parameters>
 <UploadIDArray>
      <Id>${Id}</Id> 
      <Id>${Id}</Id>
      <Id>${Id}</Id>
      <Id>${Id}</Id>
      <Id>${Id}</Id>
      <Id>${Id}</Id>
      <Id>${Id}</Id>
  </UploadIDArray>
 </Parameters>
</Input>

iress.com

Pankaj Upadhyay​

Senior Quality Engineer

Tel: +61390185800

pankaj.upadhyay@iress.com

www.iress.com

Level 16, 385 Bourke Street,
Melbourne, Victoria, 3000

The contents of this email originated from Iress. For this purpose Iress includes Iress Limited and/or any of its subsidiaries, holding companies and trading entities. ​If you have received this email in error please notify the sender immediately and delete this email.

nosig

Use a Pebble template for your request body.
You’ll be able to implement your loop with this.