<mx:Model id="xmldata" source="my.xml"/>
<mx:ArrayCollection id="myAC" source="{xmldata.items.item}"/>
The value for source is the name of the model (xmldata), the name of the XML's root node (items in this example) and the child node that the array will be based on (item).
HTH...
P E A C E
Hasan
www.marxmedia.net
hasan.otuome.com
thesourcecode.org
--- In flexcoders@yahoogroups.com, Michael van Leest <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I need to display XML data in a datagrid, but using the XML directly as
> data provider doesn't work.
> Is there a easy way to convert a XML Object to an Array or
> ArrayCollection?? Or do I need to loop over the nodes and "manual"
> create a Array for the datagrid?
>
> Any info is appreciated.
>
> Thanks, Michael
>
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.