if you have <mx:XML id="foo" ...> You now have a variable names "foo" that you can use E4X to add to. See the doc on the XML class.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmwhittaker007 Sent: Wednesday, March 28, 2007 7:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] storing data in models within Flex 2 How can I store data within my Flex application as XML that can be used again in a DataGrid? I have created an <mx:XML> data model in MXML. It seems that this only stores one model at a time from my form. How can I keep adding data from my form getting it to add to the model?