Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Created April 12, 2011 04:58
xmllistcollection to arraycollection
private function xmlToObject( xml:XML ):Object {
var xmlStr:String = xml.toString();
var xmlDoc:XMLDocument = new XMLDocument( xmlStr );
var decoder:SimpleXMLDecoder = new SimpleXMLDecoder( true );
var obj:Object = decoder.decodeXML( xmlDoc );
return obj;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment