Multi-Valued Objects in Generic XML
There are two Generic XML options for exporting fields that allow multiple values.
- Repeated Target exports a delimited list of the values in a single tag
- MultiTarget exports each value individually, in separate tags
MultiTarget is usually the preferred option.
Objects
The Country of Origin multi valued attribute is exported for each of these selected products:
Template
Repeated Target
<Products>
<Product>
<?Record?>
<ProductID><?Target?></ProductID>
<Value><?Target?></Value>
<Value><?Target?></Value>
</Product>
</Products>
MultiTarget
<Products>
<Product>
<?Record?>
<ProductID><?Target?></ProductID>
<Value><?MultiTarget?></Value>
</Product>
</Products>
Mapping
The mapping steps are the same regardless of the Multi Valued option used.
Results
Repeated Target
MultiTarget