ext/domxml: How to copy nodes?

From: Date: Mon, 21 May 2001 06:31:28 +0000
Subject: ext/domxml: How to copy nodes?
Groups: php.dev 
Request: Send a blank email to php-dev+get-56006@lists.php.net to get a copy of this message
Following situation: I have several functions that use ext/domxml to build XML trees, such as function foo() { $xmldoc = domxml_new_xmldoc('1.0'); $root = $xmldoc->add_root('foo'); // ... } function bar() { $xmldoc = domxml_new_xmldoc('1.0'); $root = $xmldoc->add_root('bar'); // ... } Now, I need to merge the trees generated by foo() and bar() under one root element <foobar> in a new XML tree. I could find nothing in the documenation about this, but I believe/hope such functionality does exist... -- sebastian bergmann sb@sebastian-bergmann.de http://www.sebastian-bergmann.de bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de

« previous php.dev (#56006) next »