Split XML in Multiple XML files - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Split XML in Multiple XML files

nisargmcanisargmca Posts: 3Member
Hi guys , i have following xml file as input ....

[code]<?xml version="1.0" encoding="ISO-8859-1"?>


SAFER
04.02


01.00
REPLACE
2009-09-01T00:00:00
CT


274845
US
AR
55002
I
100
2007-11-06
2009-08-03

LG
A P SUPPLY CO
PH
1400 N OATS

TEXARKANA
AR
71854
MILLER

US

MA
P O BOX 1927

TEXARKANA
AR
75504


US



.....
.....
.....
[/code]

and i want to take this xml file and split it into multiple files through java code like this ...

File1.xml

[code]
.....
.....
[/code]

File2.xml

[code]
.....
.....
[/code]

File3.xml

[code]
.....
.....
[/code]


and many more xml file .Each xml file contain maximum 10 or 15 IRP_ACCOUNT.

Can somebody please help me ?


Sign In or Register to comment.