[jdom-interest] How JDOM handle large files?
Risheng Lin
rlin at eng.utoledo.edu
Mon May 7 09:46:24 PDT 2001
Hi all,
I sent out this message last week and here I send it again, hoping that I
can get some feedbacks from some of you.
I have 2 questions regarding JDOM:
1. I have a XML document of size above 50MB, and I want a full document
view with random access to get,set or modify the data inside it. It seems
not possible to handle it with DOM because of the
java.lang.outOfMemoryError when using the parser to read the file .
Both JavaWorld article "Easy Java/XML integration with JDOM, Part 1" and
"Java and XML" book state that:
"JDOM attempts to incorporate the best of DOM and SAX. It's a lightweight
API designed to perform quickly in a small-memory footprint. JDOM also
provides a full document view with random access but, surprisingly, it does
not require the entire document to be in memory. "
So could you tell me whether it is possible to handle such a large XML file
by JDOM? Or any one has written a deferred builder?
2. Since the xml file is so large in size, I want to split it into several
pieces if possible. I think XLink or XInclude might be helpful. ( BTW, XML
Schema has xsd:include or xsd:import to bring together several schema,
there is no such rules in xml specification. Do you know any other ways to
do it? )
So if I use xlink, does JDOM currently supports xlink for the full document
view with random access as well?
Many thanks,
Risheng
-----------------------------------------------------
More information about the jdom-interest
mailing list