Model return an Object, and you can add properties to an object at will. Almost certainly you will be dealing with scalar values, objects, or arrays. But, if it was me, I would not use model at all, and would manipulate the XML document, which is made for this kind of thing, with methods like appendChild(), insertBefore() and createElement().
I have always preferred XML over mx:Model. Probably someone else will know how to do this with model. Tracy -----Original Message----- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ghislain Simard Sent: Wednesday, July 06, 2005 10:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adding an XML node in the data model Once the data model is downloaded, how can we add dynamically a node in that <mx:Model>? Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/