INI file for splitting XML data

XML splitting is controlled by the Docsplitter INI file.

[Split Point] section

It looks like this:

[Split Point]
Xml=PO|PO/ORDERS

The format is:

[Split Point]
Xml=ns:rootelem|PathToSplit

where

[Split Point] Literal Text
XML= Literal Text
ns:rootelem|PathToSplit The prefix ns: with the root element followed by a vertical bar and then the path from the root element to the split point, with each element separated by a slash
Note: The prefix ns: is used only when it is set up in the schema.

Example 1

The root element is PO and the split point is at the ORDERS complex element:

The INI file will contain this:

[Split Point]
Xml=PO|PO/ORDERS

This INI file will cause the XML data to split at the bold lines if an error is encountered within an ORDERS element:

<?xml version="1.0" standalone="yes"?>
<PO>
 <PURCHAGTNAME>ARTHUR JONES</PURCHAGTNAME>
 <PO_NUMBER>76766541</PO_NUMBER>
 <PO_DATE>19970905</PO_DATE>
 <REQSHIP>19971201</REQSHIP>
 <ORDERS>
 <LINE_ITEM>1</LINE_ITEM>
 <PROD_QTY>1000</PROD_QTY>
 <PROD_UNITS>EA</PROD_UNITS>
 <UNIT_PRICE>0.04</UNIT_PRICE>
 <PROD_NUM>2837645985</PROD_NUM>
 <PROD_DESC>BOOT EYELETS</PROD_DESC>
 </ORDERS>
<ORDERS>
 <LINE_ITEM>2</LINE_ITEM>
 <PROD_QTY>40</PROD_QTY>
 <PROD_UNITS>CA</PROD_UNITS>
 <UNIT_PRICE>54.00</UNIT_PRICE>
 <PROD_NUM>SAL3337465</PROD_NUM>
 <PROD_DESC>SOLE RESIN</PROD_DESC>
 </ORDERS>

Example 2

The path is complex element LINEITEM within ORDERS:

The INI file will contain this:

[Split Point]
Xml=PO|PO/ORDERS/LINEITEM

[Summary Point] section

You can include an optional [Summary Point] section to display a count of the number of split points in the file.

The format is:

[Summary Point]

Xml="element"

Where:

[Summary Point] Literal text.
Xml= Literal text.
"<element>" An element to hold the count.

Example 3

This INI file says the split point is the ORDERS element and the TOTAL element should contain a count of the ORDERS elements in the file. The TOTAL element here is reporting 10 ORDERS in the file: