Parsing BIG files is usually a job for the SAX interface. SAX doesn’t create any internal data structure at all so it is up to you to store the important information in a memory efficient way.

 

/ Erik

 

-----Original Message-----
From: Yang Wen [mailto:[EMAIL PROTECTED]
Sent: den 8 november 2003 22:39
To: [EMAIL PROTECTED]
Subject: Best way to store parsed objects?

 

Hi I’m parsing a rather big XML file, but still can fit in memory. So I’m using the Xerces Java DOM Parser and trying to store the parsed node objects into a Node array. I figure a Vector would be better but I’m having some troubles with that. Is there generally a better way to go about this? 

 

Thanks
Yang

Reply via email to