Re: Troubles with importing a node from another DOMDocument

From: Date: Thu, 17 Jul 2008 12:24:26 +0000
Subject: Re: Troubles with importing a node from another DOMDocument
References: 1 2 3  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-612@lists.php.net to get a copy of this message
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

« previous php.xml.dev (#612) next »