Sample XML file orders_by_state_attribute.xml containing 5 STATE elements each with 10 ORDER elements
Example 5: Split upon change of value of attribute "ID" in elements at depth 1.
  • No optional items are specified.
Five split files are created. Each contains one STATE element at depth 1 from the source XML file with all of the ORDER elements for that state. Note that no root element is specified in the Wizard because the STATE element becomes the root in each split file. A root element could be specified should one wish to encapsulate the STATE element within a different root.
Wizard Options For this example

First two split files created are below:

Split file 1.

Split file 2.