I tried using XMLListCollection, but have the same problem. Is there an alternate syntax I can use to refer to the "users" blocks inside my "friends" block, rather than the "users" property of the "friends" block?
-s --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > xmllistcollection > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of Steve Warren > Sent: Monday, September 24, 2007 2:20 PM > To: [email protected] > Subject: [flexcoders] XML and ArrayCollections problem > > > > Hey Flexcoders, > > I'm starting to learn Flex, coming from a Flash background, trying to > wrap > my head around the new ways to deal with XML. I'm trying to set a > dataProvider for a DataGrid component to an ArrayCollection. Problem is, > the XML I'm getting back from my service looks like this: > > <?xml version="1.0" encoding="UTF-8"?> > <friends user="me"> > <user username="friend1" /> > <user username="friend2" /> > [...] > > When I try to set my ArrayCollection to event.result.friends.user, it's > finding the String "me" instead of the array of users I'm looking for. > > Is there another way to get at this data? > > Thanks in advance for any advice. > > -steve >

