Hi All,
My program will be receiving an XML of size upto 8GB to 10GB with the following structure:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE gsafeed PUBLIC "-//Google//DTD GSA Feeds//EN" "">
<gsafeed>
<header>
<datasource>Name</datasource>
<feedtype>incremental</feedtype>
</header>
<group>
<record url="" action="add" mimetype="text/html" >
<content><![CDATA[ <html> <body><<br></body></html> ]]>
</content>
</record>
<record url="" action="add" mimetype="text/html" >
<content><![CDATA[ <html> <body><<br></body></html> ]]>
</content>
</record>
<record url="" action="add" mimetype="text/html" >
<content><![CDATA[ <html> <body><<br></body></html> ]]>
</content>
</record>
</group>
</gsafeed>
Now I've to split this XML file in terms of one GB(approx), retaining the same structure i.e each split file should have the same header & footer, except that the number of <record>
nodes will be less.
I've to do this in JDK 1.4.
Please suggest.
Thank You