Your description is fairly vague, but I think something along these
lines is what you're asking for:

var numUSA:int = xmlData..country.(@name == "USA").length;
and/or
var numUSACurrentMonth:int = xmlData..country.(@name == "USA" &&
@month == "August").length;

The @ implies that the values to filter on are attributes. If your
data needs to filter on child nodes simply remove the @.

HTH,
Ben


--- In flexcoders@yahoogroups.com, "thomas.vachon" <[EMAIL PROTECTED]>
wrote:
>
> Hi all,
> 
>     New to the group, Flex, and AS.  I was wondering how i can
iterate through a XML file 
> imported via HTTPService and count the occurances of countries, in
thie case.  So how many 
> times USA shows up verus Canada.  However, I need to knwo people
register this month, so it 
> would need to be able to basically make two arrays, one for previous
to current month, and 
> one with current month only.
> 
> Thanks
> Tom
>


Reply via email to