Hi Dane
From: "Dane Foster" <[EMAIL PROTECTED]>
> After calling detach() on a node, does the detached node become available
> for garbage collection?
Yes totally.
So if you are concerned about memory, or parsing a very big document (or a
continous XML stream such as an XML log), you can use an ElementHandler to
be notified when the element is constructed, then you can then "prune" the
element when you've finished with it. So detach() gives the garbage
collector a chance to collect in the middle of a parse. You can use an
ElementHandler to be notified of a certain path being completed such as
"/rowset/row".
There's a FAQ entry on 'how does dom4j handle very large documents" which
describes how to process a massive document in a 'row by row' way using
'pruning mode' using an ElementHandler...
http://dom4j.org/faq.html
http://dom4j.org/faq.html#How%20does%20dom4j%20handle%20very%20large%20XML%2
0documents?
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-user