Hi, I don't know what I'm doing wrong. I'm trying to load an XML file into my Flex app, but I can't seem to be able to display any data that is residing as attributes in the XML file.

What have I missed?

Here is my sample app:


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" height="400" width="792" creationComplete="feedRequest.send()">
        <mx:HTTPService
                id="feedRequest"
                url="cashgamelookup.xml"
                useProxy="false"/>
<mx:Panel x="10" y="10" width="772" height="380" layout="absolute" title="{ feedRequest.lastResult.root.title }"> <mx:DataGrid x="10" y="10" width="732" id="dgPosts" dataProvider="{ feedRequest.lastResult.root.tables.table }">
                        <mx:columns>
                                <mx:DataGridColumn headerText="Posts"      
dataField="@limit"/>
                                <mx:DataGridColumn headerText="Date"       
dataField="@players" width="150"/>
                        </mx:columns>
                </mx:DataGrid>
        </mx:Panel>
</mx:Application>


And here is an abbreviated version of the xml file:


<?xml version="1.0" encoding="utf-8"?>
<root>
  <title>Kalle Anka</title>
  <tables>
<table site="party" name="Deep Stack #1416111 (No DP)" game="Hold'em" limit="NL" stake="2/4" players="6" bigblind="400" pot="12400" hands="125" wait="0" flop="31"/> <table site="party" name="Speed #1381943 (No DP)" game="Hold'em" limit="NL" stake="2/4" players="6" bigblind="400" pot="10300" hands="92" wait="3" flop="35"/>
</tables>
</root>


Thankful for any help!

Regards,

--
Johan Nyberg
Flash developer

Web Guide Partner
Sergels Torg 12, 8 tr
111 57 Stockholm
070 - 407 83 00
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to