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 [EMAIL PROTECTED] http://www.sebastian-bergmann.de bonn.phpug.de | www.php.net | www.phpOpenTracker.de | www.titanchat.de -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]