note 15832 deleted from function.xmldoc by nlopess

From: Date: Mon, 28 Jun 2004 15:05:12 +0000
Subject: note 15832 deleted from function.xmldoc by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72028@lists.php.net to get a copy of this message
Note Submitter: php4@meta-craft.com ---- don't forget, if you want to tack on new elements to the xml object you've just created, to establish the root node... ie, $xml = xmldoc('<?xml version="1.0"?><root_node>My data</root_node>') // i want to add element 'foo' $rootObj = $xml->root(); $rootObj->new_child("foo", "bar"); this is a pretty obvious process, but not clearly stated in the docs.

« previous php.notes (#72028) next »