Here is my XML
http://fantasy4sports.com/xml/players.xml
my source XMLCollection call
<mx:XMLListCollection id="cuePointXMLList"
source="{tempXML['team-sport-content']['league-content']['season-content']['team-content']['player-content'].player}"
/>
and the resulting datagrid
http://fantasy4sports.com/testFolder/sportsPlayerCSV.html
reason for the [][] is the xml is malformed and wont read the "-" in
the titles. but thats not my problem...
Now my customer wants the team name included in each players data
which is in the parent ['team-content'].team.name
so I am assuming I have to do one of two things
1) rename the
tempXML['team-sport-content']['league-content']['season-content']['team-content']['player-content'].player
to
tempXML['team-sport-content']['league-content']['season-content']['team-content']
and figure out a way to put each player in a new row
or
figure out a way to get the data from ..parent.team.name which I dont
think is possible.
www.billebert.com