Are you making this harder than it is? Just assign the XML to the Tree.dataProvider. Find the node you want using an e4x expression, and pass that reference to expandItem(). callLater may be needed depending on how you assign the dataProvider.
Here is an example, there are more on that same site as well. http://www.cflex.net/showFileDetails.cfm?ObjectID=554 Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of hmmmbeer3 Sent: Sunday, January 20, 2008 10:26 PM To: [email protected] Subject: [flexcoders] Tree and ITreeDataDescriptor Hi, I am having big problems with the Tree. I am used to having more inuitive Tree (recursive) structures, and am conmfortable with recursion. My immediate question is how to use the getChildren() of the default ITreeDataDescriptor of a Tree with NO ROOT item, but rather many branches coming of the virtual root. Failing that, and actually in preference of, is a nice tidy way of loading recursive XML into a Tree and being able to programmatically select an Item. For example, if I had XML such as <Item id="1"/> <Item id="2"> <Item id="3"> <Item id="4"/> <Item id="5"/> </Item> </Item> whats the best way to load that into a Tree, and then whats the best way to programmatically select a node (eg where id=4) and have it open the Tree to that node. TIA Radek

