Re: SimpleXML behaves like chameleon

From: Date: Mon, 31 Jan 2005 21:46:56 +0000
Subject: Re: SimpleXML behaves like chameleon
References: 1 2  Groups: php.xml.dev 
Request: Send a blank email to php-xml-dev+get-527@lists.php.net to get a copy of this message
Christian Stocker wrote:
Simple answer, the usual array functions don't work on simplexml objects. Use the iterator interface.
OK, I can uderstand to this. But it still unclear to me why some properties of objects returned by SimpleXML are one time typed as array and second time as an object. Maybe it is because SimpleXML tries to make things simpler than they are ;) BTW: Do you have idea when PHP 5.1 will be out (even on RC level)? Many XML things (like namespace bindings and XPath issues) should be fixed in this release. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz ------------------------------------------------------------------ Profesionální školení a poradenství v oblasti technologií XML. Podívejte se na náš nově spuštěný web http://DocBook.cz Podrobný přehled školení http://xmlguru.cz/skoleni/ ------------------------------------------------------------------

« previous php.xml.dev (#527) next »