Get an XMLList of all the nodes where the "aaa" attribute has a value of "eee":
var myXML:XML = <nodes> <node aaa="bbb" ccc="asd"/> <node aaa="eee" ccc="fff"/> <node aaa="ggg" ccc="xxe"/> <node aaa="eee" ccc="fre"/> </nodes> var mySortedXMLList:XMLList = myXML.node.(@aaa=="eee"); trace(mySortedXMLList); Jason Merrill Instructional Technology Architect Bank of America Global Learning Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (Note: these resources are only available for Bank of America associates) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lehr, Theodore Sent: Tuesday, August 31, 2010 10:28 AM To: Flash Coders List Subject: [Flashcoders] sorting xml Any easy way to sort xml based on an attribute: <nodes> <node aaa="bbb" ccc="ddd"/> <node aaa="eee" ccc="fff"/> </nodes> so if I wanted to sort based on aas or ccc.... _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

