Hi all,
I'm very new to Flex so I started to read all the Doc. and Samples 
under the HELP Section.
Now I'm just trying - with no luck - to import from a local xml 
file  some data.

here is my little listino.xml file - saved at the same level of the 
main file named c.mxml.

========= listino.xml =========
<?xml version="1.0" encoding="utf-8"?>
<catalog>
    <product>
        <name>blablabla</name>
        <description>blebleble</description>
        <price>99.99</price>
    </product>
    <product>
        <name>blablabla</name>
        <description>blebleble</description>
        <price>100.99</price>
    </product>
</catalog>
========================


Then , here is my c.mxml file.
========= c.mxml =========
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
width="600" height="450">
        <mx:Model id="GetData" source="listino.xml" />

        <mx:ArrayCollection id="ac" 
source="{GetData.Catalog.Product}" />
        <mx:DataGrid id="dg" dataProvider="{ac}" >
        
                <mx:columns>
                                <mx:DataGridColumn headerText="Name" 
dataField="Name" width="120" />
                                <mx:DataGridColumn 
headerText="Descrption" dataField="Description" width="250" />
                                <mx:DataGridColumn 
headerText="Price" dataField="Price" width="150" />
                </mx:columns>
        
        </mx:DataGrid>

</mx:Application>

==========================

If I run it, I get no errors but no data at all.
Any suggestion?

Thank you in advance for your help.
Kind Regards

joe










------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 



Reply via email to