I think you need to ask for resultFormat="e4x". Then try tracing out data.toXMLString() to see what XML you're getting. I can't remember whether you'd do data.a.b.c or data.b.c. (I think the top-level element <a> may BE the data.) There's no point in using .. instead of . between b and c. If you want to use .. you'd just say data..c. - Gordon
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Sent: Thursday, January 11, 2007 5:56 PM To: [email protected] Subject: [flexcoders] Help sifting through XML (from HTTPService) with a foreach loop [new to Flex] I have an XML file that looks like this: <a> <b> <c> <data>1</data> </c> <c> <data>2</data> </c> </b> </a> I'm fetching it with.. <mx:HTTPService id="ticketDataRequest" url= "{FLEXsys.proxy}" useProxy="false" method="POST" resultFormat="object" showBusyCursor="true" result="ticketDataRequestHandler( ticketDataRequest.lastResult )"> <mx:request xmlns=""> <action>ticketData</action> <id>{ticketID}</id> </mx:request> </mx:HTTPService> In my ticketDataRequestHandler, as exercise, I just want to 'alert' what's in the data blocks... I've tried: private function ticketDataRequestHandler(data:Object):void { for each (var d:Object in data.a.b..c){ Alert.show( d.data); } } and every permutation thereof - and it just won't work for me.. Help appreciated! Alex

