4 Replies Latest reply on Jan 13, 2011 4:31 AM by Symon85

    XML childs and parent in same DataGrid

    Symon85

      Hi, if I have a XML with this structure:

       

      <product>

           <description>Cel Motorola 12</description>

           <childS>

                <child>secret data</child>

           </childS>

      </product>

       

      In my data grid, I put:

       

      <mx:DataGrid id="dataGridFaixas" dataProvider="{_myXML}" left="0" right="0" top="0" bottom="0" fontSize="9" borderStyle="none">
          <mx:columns>
              <mx:DataGridColumn dataField="product.childS.child" headerText="Cd. Site" width="50"/>
          </mx:columns>
      </mx:DataGrid>

       

      This is ok, but the data exibth is: "<child>secret data</child>" and no "secret data"...

       

      help?