Howdy, Stranger!

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

Categories

Split XML in Multiple XML files

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

[code]<?xml version="1.0" encoding="ISO-8859-1"?>
xsi:schemaLocation="http://www.safersys.org/namespaces/T0020V1 T0020V1.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.safersys.org/namespaces/T0020V1">

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.