Well I didn't got what you are actually trying to do with the XML node. But for the error part you just need to add one <root> tag in your XML data provider.
Below is the code. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Panel height="100%" title="My Links" fontSize="18"> <mx:Tree x="76" y="102" width="343" id="treLinks" fontSize="10"> <mx:dataProvider> <mx:XML> <root> <node label="Folder1"> <node label="Leaf1" nodeURL="http://www.qa.com"/> </node> <node label="Folder2"> <node label="Leaf2" nodeURL="http://www.yahoo.com" /> </node> </root> </mx:XML> </mx:dataProvider> </mx:Tree> </mx:Panel> </mx:Application> Thanks, Kumar _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Sent: Saturday, February 17, 2007 7:22 AM To: [email protected] Subject: [flexcoders] Error: Only one root tag is allowed. Newbie question here. Got the error: Only one root tag is allowed. The error appears on the <mx:XML> line. Is an XML tree in dataProvider not allowed? Thanks anyone. Dave The application is: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx=" <http://www.adobe.com/2006/mxml> http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Panel height="100%" title="My Links" fontSize="18"> <mx:Tree x="76" y="102" width="343" id="treLinks" fontSize="10"> <mx:dataProvider> <mx:XML> <node label="Folder1"> <node label="Leaf1" nodeURL=" <http://www.qa.com> http://www.qa.com"/> </node> <node label="Folder2"> <node label="Leaf2" nodeURL=" <http://www.yahoo.com> http://www.yahoo.com" /> </node> </mx:XML> </mx:dataProvider> </mx:Tree> </mx:Panel> </mx:Application>

