0 Replies Latest reply on Nov 25, 2009 8:55 AM by Prakash_r

    XML to Object

    Prakash_r

      I want to convert xml to objects..I had donr this with the help of simpleXmlDecoder.. But it gives only parents.. I want the child objects too..

       

      var xmlDoc:XMLDocument = new XMLDocument(xml.toString());
      var decoder:SimpleXMLDecoder = new SimpleXMLDecoder(true);
      var resultObj:Object = decoder.decodeXML(xmlDoc);
      var ac:ArrayCollection =new ArrayCollection(resultObj.root.menuitem.source as Array);