Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > Flex
|
Flex Discuss the Adobe Flex programming language
Welcome to the p2p.wrox.com Forums.

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
 
Old June 17th, 2008, 02:10 AM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default feeding tree control according to xml structure

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.
 
Old April 24th, 2009, 12:49 PM
Authorized User
 
Join Date: Mar 2009
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Flat XML structure to a tree by XSLT Borg0011 XSLT 2 July 9th, 2006 08:58 AM
Need help with tree data structure vidhya_venkat C++ Programming 0 June 14th, 2006 01:13 PM
Creating a Tree Structure pazzuzu C++ Programming 2 February 26th, 2005 12:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.