Data Splitting (available in v5.0.3 and later) allows you to break down large XML documents into smaller fragments, which can then be used for further iteration and customized processing.
This can be done directly from your XML Schema, in conjunction with several Business Process tasks.
Business Process tasks used for XML data splitting
Clarify provides two Business Process tasks that can be used to split XML data.
(XMLData Splitter) This task takes an XML document and splits it into several fragments using a defined path to a specific XML element.
Use Case: You have an XML document (“Order Envelope”); this contains 4 different order objects, each of which contain either an invoice or a PO for different Trading Partners. We can split the Order Envelope and then route each of the fragments to a different Business Process.
(Split Multiple Roots) This task splits a non-well-formed XML document containing multiple roots into a list of StorageNodes where each root is contained as a separate element.
Use Case: you may have an XML document that is comprised of multiple XML documents. For example, you may have an XML document containing multiple “Order Envelopes” from the example above.
Refer to the XML section of Business Process tasks for a description of parameters and descriptions for these tasks.
Use the Copy Path menu option (with XML - Data Splitter task)
The Copy Path option is available at the element level that can be used as a split path. This copies the path to the clipboard which can then be pasted into the Path parameter in the XML-Data Splitter BP task. Select the element and right-click to make this option appear, as shown below.