Example 5: Split upon change of value of attribute "ID" in elements at depth 1.
Sample XML file orders_by_state_attribute.xml containing 5 STATE elements each with 10 ORDER elements
Split Method D is used in this example and the value "ID" is entered in the attribute name input box. This method works only for elements
with a depth of one, so that field is readonly. The optional containing input is not used in this example, but if a value is entered the split
occurs only if the specified attribute value matches the containing input.
- No items on the Options Tab are specified for this example including the root element which must be blank.
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.
First two split files created are below:
|