Vasu, Those structures get cleaned up as nodes are created when you walk the DOM. Anything remaining in the arrays are for nodes which haven't been built yet but might be in the future. Every node has a pointer back to its owner Document, so if you want this object to be garbage collected you need to drop all of your references to the nodes in the tree.
Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Vasudevan Comandur <vcoman...@gmail.com> wrote on 02/04/2010 04:46:13 AM: > Hi, > > I am using Xerces 2.9.1 Java Version to construct the DOM tree. I > have built a web application in which the server side code > makes use of Xerces API. After the information is extracted from > the HTML page, the result is returned to the user. The transient > 8 variables are not cleaned up at all and all the memory chunks > allocated for the DOM tree still remains in heap. > > Can you implement a method by which all the 8 transient variables > are cleaned up for garbage collection? > > Looking forward to your reply. > > Regards > Vasu