One more small question

[email protected] (Ben Schmidt) Tue, 24 Jul 2007 11:00:36 +1000
Newsgroups php.xml.dev
Message-ID <[email protected]>
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