You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Yang Wen <yw...@umich.edu> on 2003/11/08 22:39:18 UTC
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
RE: Best way to store parsed objects?
Posted by Erik Rydgren <er...@mandarinen.se>.
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:ywenz@umich.edu]
Sent: den 8 november 2003 22:39
To: xerces-c-dev@xml.apache.org
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