Repeating a Target Element to Map to Different Sources

You can repeat a target element in the mapper. This enables you to map different sources to the same target element. Elements defined in the target schema with the maxOccurs attribute set to a value greater than one can be repeated.

To repeat a target element to map to different sources:
  1. In the target data structure, right-click the element to repeat, and select Repeat Element. Elements that can be repeated are identified by a special icon with two bars to the left of the name. When you place your cursor over these elements, the words Repeating Element are displayed.


    The element is repeated and displayed below the existing element. Elements that are repeated show the count (for example, (1 of 2) for the existing element and (2 of 2) for the repeated element. You can repeat an element multiple times.

  2. Expand the existing and repeated elements to see that the attributes in each element are repeated.
  3. Click the child attribute of the existing element (for this example, named languageCode under EBOName (1 of 2) to access the Mapping Builder.
  4. Replace Drag and Drop or Type here with a value (for this example, en is entered for English).

  5. Click Save, then click Close.
  6. Click the child attribute of the repeated element (for this example, named languageCode under EBOName (2 of 2) to access the Mapping Builder.
  7. Replace Drag and Drop or Type here with a value (for this example, fr is entered for French).
  8. Click Save, then click Close.
    The assigned values are displayed in the Mapper column.

    Note:

    If you create a repeatable element in which you do not do any mapping, then click Save and Exit Mapper, the empty element is not saved.
For more information about repeatable elements, see Automatically Creating for-each Statements.