Sample XML file orders_by_state.xml containing 50 ORDER elements
Example 4: Split upon change of tag name of Element at depth 1.
  • No optional items are specified.
All elements at depth 1 in the source XML document are USA state names. There are five such elements. Five split files are created. Each contains one state element 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 element with the state name 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.