Hi, importNode(node, true) creates a deep copy of the entire subtree. The copy will consume as much memory as the original. If your goal is to move the Node from one document to another you should use adoptNode() [1].
Thanks. [1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Document3-adoptNode Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote on 10/04/2007 04:12:54 PM: > Hi, > Trying to do importNode, deep, size of the text ~70MB, around 3M > entities and 3M <br> tags, > getting out of memory even with 1024M java heap size, is there > anything can be done? > > Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]