I got it something like this:
<mx:Model id="xmldata" source="playlist.xml" />
<mx:ArrayCollection id="testAC" source="{xmldata.song}" />
<mx:DataGrid width="100%" dataProvider="{testAC}"
click="traceSome();">
<mx:columns>
<mx:DataGridColumn headerText="Artist" dataField="artist"/>
<mx:DataGridColumn headerText="Title" dataField="title"/>
<mx:DataGridColumn headerText="Genre" dataField="genre"/>
</mx:columns>
</mx:DataGrid>
But when I only have 1 song in my xml file, an error occurs. Any thoughts??
Thanks, Michael
Travis Young schreef:
>
> I am using this for populating a DataGrid from XML or a WebService.
> Seems to work with 1 or multiple record sets returned.
>
> [Bindable]
> public var myXMLList:XMLList;
>
>
--
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/