Re: [PHP-XML-DEV] Problems seeing attributes with SimpleXml

[email protected] ("Rob Richards") Wed, 3 Mar 2004 05:29:07 -0500
Newsgroups php.xml.dev
Message-ID <[email protected]>
You need to do:
    switch((string) $rating['type']) {

Theres a thread about this on the internals list.

Rob

From: "Philip Fletcher" [email protected]

> I'm running through the SimpleXml examples on
http://uk.php.net/simplexml.
> Unfortunately I can't get Example 4 to work as advertised. When I do a
> var_dump($xml) the $rating['type'] attributes do show up: