Skip to Content
0
Sep 19, 2016 at 02:18 AM

Message Mapping Multiple Segments

21 Views

Hi all,

I am not sure how to make this scenario work, you are welcome to share your thoughts.
My requirement is I need to create a multiple segment inside a xml file and inside this segment
there could be a 0:unbounded occurrence of another segment.


Here is an example of the xml structure.

<supply>

<supply_code>PEN033</Supply_code>

<unit_code>PC</unit_code>

<sites>

<site>PRN03</site>

</sites>

<sites>

<site>TER01</site>

</sites>

<sites>

<site>CRN05</site>

</sites>

</supply>

<supply>

<supply_code>ERS004</Supply_code>

<unit_code>PC</unit_code>

<sites>

<site>PRN03</site>

</sites>

<sites>

<site>CRN05</site>

</sites>

</supply>