Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.ArrayList.ensureCapacity(ArrayList.java:169) at java.util.ArrayList.add(ArrayList ...
I'd say the problem is that you're even dealing with a 2Gb XML file to begin with. XML is designed mostly as a method to exchange data between programs. What it looks like you're doing here is using ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results