|
You should increase the virtual machine to avoid the heap space error and for speed, You should follow the following step:-
1. Create the class XYZ, class variable will all xml child tag.
2. Create Another Class XYZList, extends from arraylist.
3. Parse the xml, and create the XYZ object and set all value of xml tag to its object, and put inside the XYZList object.
4. After this, get connection object and put the data inside the database one by one.
RAM should be atleast 1gb for gud speed
|