# \_getTotalChildNodes?

**URL:** <https://forum.kirupa.com/t/-gettotalchildnodes/52387>\
**Category:** programming\
**Created:** [May 23, 2004, 11:20am UTC](https://forum.kirupa.com/t/-gettotalchildnodes/52387 "2004-05-23T11:20:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nasier](https://avatars.discourse-cdn.com/v4/letter/n/839c29/32.png) [@Nasier](https://forum.kirupa.com/u/Nasier)\
**Post date:** [May 23, 2004, 11:20am UTC](https://forum.kirupa.com/t/-gettotalchildnodes/52387/1 "2004-05-23T11:20:15Z")

</div>

Hi,…

I kinda got stuck. ☹ So I hope somebody can help me out.

I load some data from an external xml-file into a flashmovie and  
everything is working great.

What I want/need now is that Flash detects how many childnodes there are in the xml root.

for example:

```auto

< r o o t >
     < c h i l d 1 >
            < a n o t h e r />
     < / c h i l d 1 >
     < c h i l d 2 / >
     < c h i l d 3 / >
< / r o o t >

```

Is it possible that flash detects that there are 3 childNodes and returns the value 3?

Thanx already.
