# Little lost accesing XML from flash

**URL:** https://forum.kirupa.com/t/little-lost-accesing-xml-from-flash/253591
**Category:** flash
**Created:** [March 3, 2008, 10:37am UTC](https://forum.kirupa.com/t/little-lost-accesing-xml-from-flash/253591 "2008-03-03T10:37:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![qrosity](https://avatars.discourse-cdn.com/v4/letter/q/a8b319/32.png) [@qrosity](https://forum.kirupa.com/u/qrosity)
#### Post date: [March 3, 2008, 10:37am UTC](https://forum.kirupa.com/t/little-lost-accesing-xml-from-flash/253591/1 "2008-03-03T10:37:36Z")

</div>

I have already digest all the amazing tuts in this website about XML and flash, but I’m still a little confused… My question should sound stupid, but it is too much info in my mosquito brain at the moment.  
Lets say my XML looks like this one:

```auto

<?xml version="1.0" encoding="ISO-8859-1"?>
<thedata>
<events name="birthday" action="sing" message="sit amet turpis." />
<events name="wedding" action="party" message="sit amet turpis." />
<events name="funeral" action="cry" message="sit amet turpis." />
<customer ref="10" name="John" city="London" quotation="sit amet turpis." />
<customer ref="11" name="Mary" city="Madrid" quotation="Nulla scelerisque nunc eget sem. Quisque a eros vel nisl aliquet tempor." />
<customer ref="12" name="Sam" city="Lisboa" quotation="Nunc sed elit eget lacus venenatis sagittis. Vivamus scelerisque mollis nulla. Nam non purus id dui ullamcorper iaculis." />
</thedata>

```

I know how to put them in a flash array and count them all, but don’t know how to count only some, like, I want to know how many customers are in the list.  
How can I get this number in flash.  
🐇
