One more small question
| From: | Ben Schmidt | Date: | Tue, 24 Jul 2007 01:00:36 +0000 |
| Subject: | One more small question | ||
| Groups: | php.xml.dev | ||
| Request: | Send a blank email to php-xml-dev+get-600@lists.php.net to get a copy of this message | ||
Hi, Rob,
One more small question which may turn into a request.
When you have a node, can you set its value easily? Accessing is easy, you just cast to string. But if you try to set you will just set the variable that holds the object, not the data the node contains. Maybe a setValue method should be added to SimpleXML as well to facilitate this.
E.g.
foreach ($root->elemtype as $sxe) {
$sxe->setValue($something);
}
Surely my list of requests is coming to an end now...
Cheers,
Ben.
Send instant messages to your online friends http://au.messenger.yahoo.com