One way": var points:XMLList=obj.POINT;
var obj:XML = <obj/>; obj.setChildren(points); Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 11:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] XMLList converted to XML What is an efficient way to convert XMLList object into children of an XML object? I'm using the XMLList methods to rearrange my XML children to specified order, but I need to convert the reordered XMLList back into datatyped XML objects into the original XML object. var obj:XML= <OBJECT> <POINT id="1"> <X/> <Y/> <Z/> </POINT> <POINT id="2"> <X/> <Y/> <Z/> </POINT> </OBJECT>; var points:XMLList=obj.POINT; //How would convert "points" XMLList back into datatype XML children of the variable "obj"? --Keith H--