Hi Michael, how about the following (not tested): var petsList:XMLList = pets.*; var sugarDaddy:XMLList = petsList.(pet name == "Sugar"); trace(sugarDaddy@group); HTH Willem van den Goorbergh
On 5 mei 2011, at 17:32, Mendelsohn, Michael wrote: > Hi list... > > I'm trying to find some xml's parent attribute. > > I have <pet name="Sugar"/> and I want to find "B". > > var pets:XML = <pets group="A"> > <pet name="Rover"/> > <pet name="Buffy"/> > </pets> > <pets group="B"> > <pet name="Spot"/> > <pet name="Sugar"/> > </pets>; > > I can't seem to find it. Anyone know how? > > Thanks, > - Michael M. > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: www.geografiek.nl twitter: @wvdgoorbergh =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

