Hi Tung,

This doesn't seem to give me any joy.  Here's
what I've done:

Ok, I've changed it to look like this:

        Node n;
        while ((n = nodeList.nextNode()) != null) {
             Document querydoc = new DocumentImpl();
             Node cn = querydoc.importNode(n, true);
             querydoc.appendChild(cn);
             docList.add(querydoc);
         }

I still get the same output as before.  This should
mean however, that I don't have to call the clone mehod.

Thanks for the input.

Best Regards,

Henry

Tung Mansfield wrote:
> 
> I don't think you have to clone the node before invoking importNode. I
> believe importNode does this for you. Try removing the call to cloneNode to
> see if that will help.
> 

-- 
Henry Kleynhans                                       Obsidian Labs
Systems Engineer                                       South Africa
[EMAIL PROTECTED]                         Tel: +27 11 792 6500
http://www.obsidianlabs.com/                   Fax: +27 11 792 6522

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to