You can loop over the XMLList directly, without first wrapping it in an XMLListcollection.
However, I suspect you could also use an e4x expression leveraging the childIndex() method. Something like: Xml.myNode.(childIndex() < n); Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Don Kerr Sent: Sunday, January 04, 2009 3:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XMLList: get first n items You might look XMLListCollection. Loop through it and use getItemAt(n) to grab items. Don't have any example code right now, but Collections are powerful. Don --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Hyder" <hyder_...@...> wrote: > > How do I get the first n items in an XMLList? > I'm not very familiar with XML workarounds. > > TIA, > > Hyder >