The problem is that the help examples use elements, while you are 
using node attributes. So, you must specify that your labelField 
is "@name".

R. Grimes

--- In [email protected], "AndrĂ© Rodrigues Pena" 
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> I got 2 doubts.
> 
> 1) I want to populate a List control
> 
> so I did
> 
> <mx:XMLList xmlns="" id="listSource">
>               <root>
>                       <site name="betanews" url="www.betanews.com"/>
>                       <site name="dzone" url="www.dzone.com"/>
        
>               </root>
> </mx:XMLList>
> 
> <mx:List id="siteList" x="10" y="10" 
dataProvider="{listSource.site}"
> labelField="name"/>
> 
> That's what I understood from the documentation. But it doens't work
> 
> Can anybody tell me why?
> 
> 2) I want to return the "url" attribute from the "site" item. I'm
> trying but I'm not getting to do this
> 
> THANKS
> 
> 
> -- 
> André Rodrigues Pena
>


Reply via email to