How to split large XML files in BW 6.

How to split large XML files in BW 6.

book

Article ID: KB0085093

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Description:
Attached is a sample application (Filename: SplitLargeXML.zip)  that shows how to split large XML files into smaller ones using the Java Invoke activity in BW 6 using custom Java code.

Issue/Introduction

How to split large XML files in BW 6.

Resolution

To run the sample, import the attached studio archive (Filename: SplitlargeXML.zip) in the workspace. Save the attached (Filename: Split.xml) file under  "C:\temp" and start the application in run/debug mode within Studio. There will be two files generated with XML content split between them based on the "person" element in the parent XML. Review the Map-Data mapper activity's Input tab and custom code in SplitXMLFileJavaCode.java for key configuration parameters or to customize it further.

Attachments

How to split large XML files in BW 6. get_app
How to split large XML files in BW 6. get_app