Glossary of Terms: XML and Java for Scientists/Engineers |
DOM is memory intensive. For the handling of large documents that only need to be read and parsed, SAX is probably a much better method.
Compared to DOM, the memory requirements for SAX are minimal. However, if the XML document has a complex structure (perhaps through cross referencing with XML's ID and IDREF relationships), using SAX can necessitate multiple parses of a document or use of sophisticated buffering to retrieve needed information that has already passed through the parse window.
Developed in January 2002 by Mark Austin
Copyright © 2002, Mark Austin, University of Maryland