XML Streaming Service
XML Streaming Service
The XML Streaming Service will allow you to split an arbitrarily large XML file into smaller XML’s by using a stream rather dan loading the document using DOM.
This service will split your large XML based on a specified element name, which must be a repeating element in the original document. Also you can specify a new root element is needed to envelope the newly created documents as well as a page size which will allow you to regulare the size and volume of the output messages.
Example XML:
<root>
<element>
<subelement>somedata</subelement>
<element>
<element>
<subelement>somedata</subelement>
<element>
<element>
<subelement>somedata</subelement>
<element>
</root>
This document can split using element ‘element’ and page size = 1 into three output document containing:
<element>
<subelement>somedata</subelement>
<element>
In the table below, you will find an explanation of these properties. All attributes with a ‘*’ are mandatory.
Attribute |
Description |
Name* |
By default, we fill this out with the technical ‘tag’, followed by a serial number. Changing the name is optional. |
Enabled |
Set this value to true, if you want this service to be enabled. |
XML Element* |
Name of the element on which to split the XML document. This element must appear at least once in the document. |
Root Tag name |
Name of the new root element. When specified a new root element will be added to the newly created splitted documents. |
Page Size |
Specify the size of the newly created document. This will specify the number of repeating elements per newly created document. |
MessagePart In |
Specify the name of the MessagePart, which will be used as input. The value of this MessagePart becomes the XML data for this service to split |
MessagePart Out |
Specify the name of the MessagePart which will be created in the newly created Messages for each splitted document. |