The downfall of DOM objects is that they take up so much room in memory
for large documents, especially when you're building them at run time.
If you're going to stick with manipulating raw XML, try writing it to
memory via SAX first and then import the resulting document into DOM
as/if needed (saves a whole lot of tree traversal).  

An un/marshalling framework (Castor, XMLBeans, etc.) might help with
memory but they introduce their own complexities.

Good luck,

Jim T.

-----Original Message-----
From: MUHAMMAD IQBAL [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 05, 2005 10:48 PM
To: [email protected]
Subject: it goes out of memory

Hi All,

I am using AXIS web services, i have a huge database that consists of
around 100,000 row, i am using manual serialization using my own XSD.
but when the response rows exceed 5000/= it goes out of memory. it is
because first i am writting resonse into a DOM Element and then sending
the complete object to the client.

can any one tell me the solution ?


Thanks and regards,

Iqbal



Reply via email to