Skip to content

Instantly share code, notes, and snippets.

@nsdevaraj
Created April 12, 2011 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nsdevaraj/914955 to your computer and use it in GitHub Desktop.
Save nsdevaraj/914955 to your computer and use it in GitHub Desktop.
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