Have you tried: myXMLListDogs:XMLList = pets..dog myXMLListBirds:XMLList = pets..bird
Jason Merrill Bank of America Global Learning Learning & Performance Soluions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mendelsohn, Michael Sent: Tuesday, December 01, 2009 11:12 AM To: Flash Coders List Subject: [Flashcoders] simple E4X question, getting two types of nodes How do I get an XMLList containing all occurrences of <dog> and <bird>? <pets> <dog>Rover</dog> <bird>Sally</bird> <cat>Felix</cat> <bunny>Thumper</bunny> </pets> I've been trying things like the following, to no avail. pets.elements(["dog","bird"]); pets..*((["name"]()=="dog")||(["name"]()=="bird")); pets..(["child"]("dog") || ["child"]("bird")); Thanks! - Michael M. _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

