Saving parsed XML data to memory

Hello everyone,

My Bitmap fonts and HUD make use of XML files to help define them, both files are rather small ~30 KB about. The Font XML is parsed once at engine startup and the HUD file once when world is created.

I use DOM to parse them (DocumentBuilderFactory etc.), what system should I use to save the parsed data to for later use during the main game loop(tick), a Hash map, or what? Obviously I want it to be quick and not take to much memory.

If this approach is wrong please tell me, I will try any other methods you think would be better.

Thanks