Customizing Combine Settings for XML Output

If you have tried setting the Combined Node property to organize XML output when marshalling data to XML but your output file does not show the elements and attributes nested as you would like, or you want to improve performance, you can use the Combine Key, Eliminate Duplicates and Group properties to customize the Combine settings. Example

Typical cases for customizing the settings are as follows:

You can customize Combine Duplicate settings only on elements where you have already set the Combine Duplicates property (either directly on the node or on a descendant and therefore inherited.)

  1. Set the Combined Node property on the node for which you want to combine duplicate occurrences.

    Typically, when the XML data in the output file is not organized as you would like, it is because the selected element value and all its attribute values are used to identify duplicate elements. In many cases, you need to search for duplicates using either a subset of this data or different data as a key in identifying duplicate elements.

  2. Using the Combine Node Wizard, determine which elements or attributes should be used as "Combine Keys", (keys to be used in identifying duplicate elements). By default, all attributes of the combined node are checked.

  3.  

  4. For further control over the XML output, you can set Group and Eliminate Duplicates options in the Combine Node Wizard.

  1. Save the project and mapping file by clicking in the main toolbar.

  2. Try marshalling data to XML to test your settings by clicking in the main toolbar.

See Also

Setting Up Nested XML Elements for Marshalling
Combining Duplicate Elements in XML Output

XML Structure Tab

Sample Marshal with Combine Project