Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

String Concatenation Mapping Question

$
0
0

Hello All,

I have a very simple mapping question that for some reason I am really struggling with. I'm hoping someone can provide some insight into the solution. I have an XML that is structured like this:

<?xml version="1.0" encoding="utf-8"?>
<SelectResponse xmlns="http://Microsoft.LobServices.OracleDB">
  <SelectResult>
    <Record>
      <ID>1</ID>
      <Location>Spain</Location>
    </Record>
    <Record>
      <ID>1</ID>
      <Location>France</Location>
    </Record>
    <Record>
      <ID>15</ID>
      <Location>Africa</Location>
    </Record>
    <Record>
      <ID>16</ID>
      <Location>Canada</Location>
    </Record>
  </SelectResult>
</SelectResponse>


The response I am trying to get would be a XML message that concatenates the location of records with matching IDs in a comma delimited format, for example:

<?xml version="1.0" encoding="utf-8"?>
<SelectResponse>
  <Results>
    <Record>
      <ID>1</ID>
      <Location>Spain, France</Location>
    </Record>
    <Record>
      <ID>15</ID>
      <Location>Africa</Location>
    </Record>
    <Record>
      <ID>16</ID>
      <Results>Canada</Results>
    </Record>
  </Results>
</SelectResponse>

I've tried using different methods of string concatenation and looping functoids with no luck. Any assistance would be much appreciated!


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>