in reply to Jumping to a location in a file

Given that XML has the ability to source in other files, why on earth do you have a 2G XML file?! Personally, I'd pre-process the file and chunk it out so that you have the ability to work with it. Either than or pre-process it into something a little more amenable to easy use, like a nice binary file.

A third option would be to have XML::Simple to work with a DBM::Deep-backed hash.


My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Re^2: Jumping to a location in a file
by Anonymous Monk on May 13, 2008 at 01:41 UTC

    Thanks to you both! I got it to work nicely.

    yes it is mysterious working with a 2gig XML file. But that is what I have to work with. We did think about preprocessing the data, but we decided to give way a try and see how it works.