Actually,

my previous message was a bit incorrect.  importNode does copy the attributes
but the values are not coming over just "".

I just grabbed xercer 1.4.0....that does the same thing....


HELP!!!!

-Fred


"Swanson, Brion" wrote:

> This was fixed in a patch.  You might check the latest release (I don't know
> if it had the change), but it's certainly in CVS for the taking.
>
> Brion Swanson
>
> -----Original Message-----
> From: Fred Welland [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 05, 2001 10:23 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: HOW TO: graft one DOM tree on to another???
>
> Hi Jonathon,
>
> That more or less worked.  In my previous attempts with importNode - I was
> doing the import but really not adding it to the doc (ala appendChild)...
>
> HOWEVER, my attirubutes are not coming from the subtree into the main
> tree...Any ideas on this one...
>
> Thanks for your help.
>
> -Fred
>
> [EMAIL PROTECTED] wrote:
>
> >         Hi Fred,
> >
> >         the DOM API specifies that importNode returns a Node itself. I had
> > exactly the same problem as you...
> >         Try appending the imported node like this:
> >
> >         rootElement.appendChild(rootDocument.importNode(snippetElement,
> > true));
> >
> >         The 'true' argument is for deep-importing of the snippetElement,
> > i.o.w. it imports all children of snippetElement as well.
> >
> >         Hope this works,
> >
> >         Jonathan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to