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]
