How Do I Create a Specific Number of Items in a Repeatable Compound? (Magic xpi 4.13)
You can easily replicate existing Data Mapper compound nodes in XML Sources and Destinations. You do this using Magic xpi’s dedicated replication functionality.
Replicating a number of items in a repeatable compound:
-
Open your Data Mapper and select the compound node that you want to replicate. Right-click on the node, and select Show Properties from the context menu to display the Properties pane.
-
In the Replication parameter, select Yes from the drop-down list.
![](/PublicKnowledge/servlet/rtaImage?eid=ka23z000000H0Bk&feoid=00ND0000005rAjf&refid=0EM3z000007lCU7)
-
You will notice that the selected compound node now carries a #1 suffix.
-
In the Data Mapper screen, right-click again on the compound node that you want to duplicate. Select Add Replication from the context menu. This adds a duplicate compound node, along with its entries underneath it.
The replicated compound node carries a #2 suffix. This new node is added directly underneath the node that you just duplicated. You can repeat the replication process, without limit, by right-clicking the original compound node, or also by right-clicking any of the replicated nodes. The new instances are numbered with sequential suffixes.
Deleting a replicated compound node:
Restoring the original node name: