Try event.result..["time-entry"], and if that doesn't work, try
event.result.descendants("time-entry").Gordon Smith Adobe Flex SDK Team -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Krasko Sent: Sunday, March 30, 2008 2:04 PM To: [email protected] Subject: Re: [flexcoders] e4x Dash Try (). event.result..(time-entry) Sent via BlackBerry from T-Mobile -----Original Message----- From: "todd_geist" <[EMAIL PROTECTED]> Date: Sun, 30 Mar 2008 18:57:33 To:[email protected] Subject: [flexcoders] e4x Dash Hello I would like to use the descendant accessor operator to extract all time-entry nodes from the event data containing the following XML and loop through them. <time-invested> <group-by>person</group-by> <start-date>2008-03-23</start-date> <end-date>2008-03-29</end-date> <groups> <group> <title>me</title> <total>12.45</total> <time-entries> <time-entry> ---nodes are here ---- </time-entry> </time-entries> </group> </groups> </time-invested> I have tried this... for each (var t:XML in event.result..time-entry) but I get an error "1120: Access of undefined property entry". I know this is due to the "-" in the element name but I do not know how to escape it. any help would be appreciated Thanks Todd ------------------------------------ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links

