0 Replies Latest reply on Feb 15, 2007 7:59 AM by JTMcGarvey

    Traversing external XML in datagrid

    JTMcGarvey
      Hi,
      I am trying to traverse XML received via HTTPService in a datagrid. The value I have defined for DataGridColumn "Player" (player.firstname) returns nothing. What is the correct syntax?

      <entry>
      <name>TEST</name>
      <player>
      <firstname>Grant</firstname>
      </player>
      </entry>

      <mx:Panel x="10" y="10" width="610" height="464" layout="absolute" title="CrunchTime Leaderboard">
      <mx:DataGrid id="leaders" x="0" y="0" width="574" height="225" dataProvider="{xmldata.lastResult.leaderboard.game.entries.entry}">
      <mx:columns>
      <mx:DataGridColumn headerText="Screen Name" dataField="name"/>
      <mx:DataGridColumn headerText="Player" dataField="player.firstname" width="120"/>
      </mx:columns>
      </mx:DataGrid>

      </mx:Panel>

      Thank you!