Then you probably want XML::Twig, which allows you to trigger on just a part of the tree as needed, while the parsing is happening.
But I am confused. You say you want a data structure, yet when you've created such a data structure, you get more than you want. You'll need to decide exactly what you want!
Or maybe you can build the data structure using DBM::Deep, which keeps most of it out on disk instead of in memory.
| [reply] |
Randal,
I used XML Twig and it did the job very nicely. Its fast and it didn't kill my memory. Thanks for pointing me at the module.
Best
| [reply] |