1 Reply Latest reply on Jul 26, 2010 3:56 PM by saisri2k2

    Binding to the XML node's self text value




      I have an part of XML structure like this:



      <course grade="5">Algebra</course>
      <course grade="3">Mechanics</course>
      <course grade="4">Informatics</course>

      I got it into XMLList, used it as a source for XMLListCollection

      and want to display it in a DataGrid components.

      I figured out how to bind the attribute:
      <mx:dataGridColumn dataField="@grade" headerText="Grade" />

      I also know how to bind a child node. But how do I bind the text

      value itself, i.e. the values "Algebra", "Mechanics" and so on?