# Array length from database generated xml

**URL:** <https://forum.kirupa.com/t/array-length-from-database-generated-xml/288377>\
**Category:** Uncategorized\
**Created:** [May 14, 2009, 10:01pm UTC](https://forum.kirupa.com/t/array-length-from-database-generated-xml/288377 "2009-05-14T22:01:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex\_ludwig](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@alex\_ludwig](https://forum.kirupa.com/u/alex_ludwig)\
**Post date:** [May 14, 2009, 10:01pm UTC](https://forum.kirupa.com/t/array-length-from-database-generated-xml/288377/1 "2009-05-14T22:01:54Z")

</div>

Hi,  
New here.

I want to know the length of a xml. From a xml file I can make it work.

In this case it’s a database that generates the xml. So it is a URL, not a Xml.

How can I make this work?

```auto

// loading xml //

url_xml.onLoad = function() {
    // this is the array I need from the URL // 	
    var array1:Array = url_xml; 

    //In a xml file case, I could add ".childnodes;". I tried here and the output wasn't right. 

    trace (array1.length); // output
}

url_xml.load("http://.../contents/?format=xml"); // xml path generated from database//

```

Any ideas? thanks!!
