0 Replies Latest reply on Dec 2, 2008 12:12 AM by Confucius-

    How to use node's child text as the dataField in DataGrid

    Confucius-
      var myData:XML = <document>
      <ele>
      <basic>
      <name>name1</name>
      <age>age</age>
      <gender>male</gender>
      </basic>
      <other>...</other>
      </ele>
      <ele>
      <basic>
      <name>name1</name>
      <age>age</age>
      <gender>male</gender>
      </basic>
      <other>...</other>
      </ele>
      <ele>
      <basic>
      <name>name1</name>
      <age>age</age>
      <gender>male</gender>
      </basic>
      <other>...</other>
      </ele>
      </document>

      I want to use just like above XML as data resource of dataProvider of DataGrid. I pass the "ele" element set to DataGrid.
      My question is that how can I use the "name" child of "ele" element as the DataGridColumn's dataField

      Thanks in advance!