How Do I Map from Specific Instances? (Magic xpi 3.x)
To map a multi-occurrence compound to a single-occurrence element, use Instance Assignment to multiply Source compounds. Then map the Source data to the Destination compound.
Sample Schema for Input XML Document:
Sample Schema for Output XML Document:
Sample XML Document:
-
Create a Data Mapper step.
-
Define an XML Source type, based on the given schema.
-
Define an XML Destination type, based on the given Destination schema.
-
In the Data Mapper screen, carry out the following:
-
Enable Instance Assignment by checking the Replication check box in the Source compound’s Node Properties screen.
-
Verify that the compound name was changed to Address#1 in the Data Mapper screen.
-
From the compound node’s context menu, select Add Replication to create the required number of instances.
-
Connect the duplicated Source elements to the simple Destination element. For example:
Note:
|
The replication in the Source will give you the first and second compound. There is no filtering available which allows you to select the required compound for each replication instance.
|
|