As the title says it, I have a huge xml file (GBs)
... ...
Have a look at StAX, this might be what you need. There's a good introduction on IBM Developer Works.