The node names are not unique, so how will that work as key names?
Also, a what is your use case for doing this? The e4x xml expessions will give you fairly simple and quick access to the desired node. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dylan_r Sent: Wednesday, October 24, 2007 12:24 PM To: [email protected] Subject: [flexcoders] using XML nods names as array Keys Hi, right off the bat, I'm a newb at actionscript (any version), so please bear with me. I'm trying to load XML nodes into an associative array, using the node name as key and inner text as value. So given this XML: <sites> <site> <sitename>google</sitename> <url>http://www.google.com <http://www.google.com> </url> <status>1</status> </site> <site> <sitename>yahoo</sitename> <url>http://www.yahoo.com <http://www.yahoo.com> </url> <status>0</status> </site> <site> <sitename>MSN</sitename> <url>http://www.msn.com <http://www.msn.com> </url> <status>0</status> </site> </sites> say if my XML object is myXMLoBj, how do I get to myXMLoBj.sitename[0]...[n]? tia, Dylan

