The length() of the resultant XML list of the e4x expression will be the
count of the nodes found.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexfortress
Sent: Friday, November 27, 2009 3:39 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] Counting XML nodes with attributes having
specific values (using EX4 perhaps)...

 

  

Hello all!

I'm creating a charting application in Flex and I have been given XML in the
following format...

<dc>
<r a="x1" b="y1" c=z1" />
<r a="x1" b="y1" c=z1" />
<r a="x1" b="y2" c=z2" />
<r a="x1" b="y2" c=z2" />
</dc>

I need to COUNT the number of nodes/rows that have a value of "x1" for
attribute a, and say..."y2" and "y1" for attribute b, etc., so I can
aggregate and chart them.

Anyone know of an efficient and effective way of doing this in ActionScript
3?

Thanks to all in advance! 

David



Reply via email to