You are currently viewing the Flex section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I have a tree control.I have also an xml according to which the tree needs to be formed.The xml structure is as follows:<ROOT label="Choose From Library">
<NODE id="1" label="Family">
<CATEGORY label="to Mom and Dad">
<CHILD>
<SRC><![CDATA[assets/icon_mugs.png]]></SRC>
<LABEL><![CDATA[I love you this much]]></LABEL>
</CHILD>
</CATEGORY>
</NODE>
</ROOT>
Root will act as parent node.Its chid vl be node name <NODE>.How can i make a tree??the dataprovider sets all xml as the root node.
you can read in the xml as a collection and then make a new xml collection for your tree to use, based on your own needs. it'd be too hard to list all the details here. the online flex api has some examples using xml. -m