Hi, I am using Xerces 2.9.1 java version. I construct the DOM tree using DOM Parser and access the nodes for information extraction.
After completing the processing, I want to clear the root element. Is there any API calls/methods which I can use to clear that? I am using XERCES API in the following sequence. 1. parser = New DOMParser 2. parser.parse(InputSource) 3. Document = parser.getDocument 4. parser.reset 5. Element = Document.getDocumentElement Then use other methods to extract information from nodes. After that I am terminating the application. Is there any API like RemoveElement which can remove the allocated memory? We were profiling the application using NetBeans profiler and found out that are memory leaks with some of the Xerces classes. For Example: I see lot of references to org.apache.xerces.dom.DeferredDocumentImp, org.apache.xerces.dom.DeferredElementNSImpl, and org.apache.xerces.dom.DeferredTextImpl. Is there a way by which I can get rid of these memory leaks?. Looking forward to your reply. THanks in advance Vasu