Data Model Flex


    
        
            
                import mx.rpc.xml.SimpleXMLEncoder;
    
                private var o:Object = {name:"A",description_items:{height:'183cm', weight:'77k'}};
    
                private var doc:XMLDocument;
    
                private function init():void {
    
                    doc = new XMLDocument('');
                    var simpleEncode:SimpleXMLEncoder = new SimpleXMLEncoder(doc);
                    var node:XMLNode = simpleEncode.encodeValue(o, new QName('http://localhost/ws', 'ls'), doc.firstChild);
    
                }