Tracy Spratt Thu, 09 Jun 2005 15:45:24 -0700
http://www.cflex.net/showfaq.cfm?Object=faq&channelID=1&faqtype=&defaultfields=&defaultValues=#Question373
Tracy
From: [email protected] [mailto:[email protected]] On Behalf Of flex scripter Sent: Thursday, June 09, 2005 3:26 PM To: [email protected] Subject: [flexcoders] Doubt about DataGrid and XML
My code looks like this : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" > <mx:Model id="temp" source="xml_src.xml"></mx:Model> <mx:DataGrid id="dg" dataProvider="{temp.employee}"/> </mx:Application> and in my XML file if I have <employees> <employee name ="Christina Coenraets" phone ="555-219-2270" email="[EMAIL PROTECTED]" active="true"/> <employee name ="Louis Freligh" phone="555-219-2100" email="[EMAIL PROTECTED]" active="true"/> </employees> The data grid is populated. But if I have just <employees> <employee name ="Christina Coenraets" phone ="555-219-2270" email="[EMAIL PROTECTED] " active="true"/> </employees> My data grid isnt getting populated. What am I missing here ?? Thanks for your time and advice Regards Fx.