Hi Fred,

Could you also post your code and xml files so that we can reproduce this
problem and, hopefully, solve it?

Are you using "DeferredDocumentImpl"? I tried "DocumentImpl", and the
attribute values seem to be imported (latest Xerces from CVS).

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]



                                                                                
                                     
                    Fred Welland                                                
                                     
                    <[EMAIL PROTECTED]       To:     [EMAIL PROTECTED]          
                            
                    xinc.com>              cc:     [EMAIL PROTECTED]            
                                   
                    Sent by:               Subject:     Re: HOW TO: graft one 
DOM tree on to another???              
                    [EMAIL PROTECTED]                                           
                                      
                    tp.ibm.com                                                  
                                     
                                                                                
                                     
                                                                                
                                     
                    06/05/2001 10:23                                            
                                     
                    AM                                                          
                                     
                    Please respond                                              
                                     
                    to xerces-j-user                                            
                                     
                                                                                
                                     
                                                                                
                                     



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]

Reply via email to