Re: [PHP-XML-DEV] Troubles with importing a node from another DOMDocument

[email protected] (Rob Richards) Thu, 17 Jul 2008 08:24:26 -0400
Newsgroups php.xml.dev
Message-ID <[email protected]>
Stanislav Sazonov wrote:
> Wow! The hole new method! Won't it be redundant if you clear an owner during
> clone() operation?
>
>   
>> You need to import the node in the new document:
>>
>> http://no.php.net/manual/en/domdocument.importnode.php
>>
>>
>>     

using the clone keyword is the same as using the cloneNode() method 
doing a deep copy on the node in question.

Rob