How to access this XML data in a grid?


i have done many data grids, reason getting stuck on how display particular xml data in grid correctly:

 

<?xml version="1.0" encoding="utf-8"?>

<tabledata>


<items type="kitchen access">

<item><![cdata[direct; less 3 ft. above grade]]></item>

<item><![cdata[direct; 1 story above grade]]></item>

<item><![cdata[indirect; less 3 ft. above grade]]></item>

<item><![cdata[indirect; 1 story above grade]]></item>

<item><![cdata[indirect; more 1 story above grade]]></item>

</items>


<items type="flooring removal">

<item><![cdata[flooring remain]]></item>

<item><![cdata[remove sheet vinyl or linoleum]]></item>

<item><![cdata[remove tile on mortar bed]]></item>

<item><![cdata[remove wood flooring]]></item>

<item><![cdata[remove floor installed tenacious adhesive]]></item>

</items>


...etc...


</tabledata>

 

i want each "items" row, , each "item" column within row.  possible, or should reformat xml?

its possible. let xml in seperate file, try :

 

    <mx:xml id="tabledata" source="tabledata.xml"/>

 

     <mx:datagrid id="dgid" dataprovider="{tabledata.items}" editable="true" height="100" width="100%" />

 

hth,

gaurav jain

flex sdk team



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???