How to loop list into the simple API call?

Hi all,

I have a simple API call by XML:

<Request>
   <PlaceDetail>
      <PlaceID>9386</PlaceID>
      <PlaceID>9650</PlaceID>
      <PlaceID>16064</PlaceID>
  </PlaceDetail>
</Request>

Now I need to use a loop from list to present <PlaceID> section:

"<Request>
  <PlaceDetail>"
     &
     a!forEach(items:ri!placeList,expression: concat("<PlaceID>",tostring(fv!item),"</PlaceID>")))

     &
"</PlaceDetail>
</Request>"

It is not working because as I check the Http request I sent out:

<Request> <PlaceDetail><PlaceID>9386</PlaceID>  ; <PlaceID>9650</PlaceID></PlaceDetail> </Request>

There are always a wired ";" in between two PlaceId Section......

Can anyone give me some hint? thanks!

 

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data