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"; 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"/>
               </node>
               <node label="Folder2">
                  <node label="Leaf2" nodeURL="http://www.yahoo.com"; />
               </node>
            </mx:XML>
         </mx:dataProvider>
 </mx:Tree>
   </mx:Panel>
</mx:Application>

Reply via email to