Class to parse huge XML files in a memory-efficient way