note 89391 deleted from simplexmlelement.attributes by danbrown

From: Date: Wed, 16 Sep 2009 15:24:04 +0000
Subject: note 89391 deleted from simplexmlelement.attributes by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160626@lists.php.net to get a copy of this message
Note Submitter: Jeff M ---- It's helpful if you don't think of 'SimpleXML' as 'DOM' because it's not. SimpleXML is an 'Object Mapping XML API', which means it converts the XML elements into the native data types used by PHP. So attributes on an 'element' are accessible using standard array notation: $simplexml->path->to->descendant['attribute-name'] Dead simple, pun intended ;) skerr at mojavi dot org nailed it in post #7.

« previous php.notes (#160626) next »