AnsweredAssumed Answered

How to map to unbounded structure

Question asked by BoMoeller8281 on Dec 11, 2014
Latest reply on Dec 11, 2014 by richard_moon
Hi

I need to find out how I map to from a simple xml structure with multiple fields, and map these fields contents to an unbounded structure.

Sender XML:
<?xml version='1.0' encoding='UTF-8'?>
<Sender>
    <Name1>12</Name1>
    <Name2>13</Name2>
</Sender>

Result XML (after mapping should look like):
<?xml version='1.0' encoding='UTF-8'?>
<Result>
  <Rows>
    <Name>12</Name>
  </Rows>
  <Rows>
    <Name>13</Name>
  </Rows>
</Result>

So the "Rows" element is unbounded. But how do I in my mapping say that "Name1" goes to 1 occurence of "Rows/Name" and "Name2" field goes to 2 occurence of "Rows/Name"?

Appreciate any help

Outcomes