<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, All
<P>In all the articals talk about JDOM, I always found people saying " JDOM is
light weighted, it doesn't require the entire document to be in memory." but at
the same time "It provides a full document view with random access".
<P>I really can't understand this. SAX is light weighted and takes less memory
because it's event driven, that't also the reason we can't "random access" the
elements in the XML file.
<P>DOM mapping the whole XML file into a tree hierarchy so we can have random
access but that will take a lot of memory if the XML file is big. That's also
understandable because we put all the data in the XML into memory.
<P>To me, JDOM document is very similar to a DOM document, it's collected all
the information in the XML file and built into a tree hierarchy, so we can have
random access but SHOULD take a lot of memory. I know there must be some thing I
misunderstood here, but what is it?
<P>Any one can explain this to me? Or I need some example to "convince" me, say,
build a JDOM document and a DOM document from the same XML file, then compare
their size, but how to implement this experiment.
<P>Thanks for any information. It's really haunting
me.</P></FONT></DIV></BODY></HTML>