Combining SimpleXML objects

From: Date: Thu, 08 Apr 2004 00:57:02 +0000
Subject: Combining SimpleXML objects
Groups: php.general 
Request: Send a blank email to php-general+get-182764@lists.php.net to get a copy of this message
Another quickie: is there an easy way to combine SimpleXML objects? Something Like: $a = simplexml_load_string('<a><b/></a>'); $c = simplexml_load_string('<c><d>Foo</d></c>'); $a->b = $c->d; print_r($a); Here's what I get: Warning: It is not possible to assign complex types to nodes in D:\...\test.php on line 5 simplexml_element Object ( [b] => simplexml_element Object ( ) ) Thanks, -Dan

« previous php.general (#182764) next »