# Dynamically output XML childs

**URL:** https://forum.kirupa.com/t/dynamically-output-xml-childs/330922
**Category:** flash
**Created:** [April 9, 2013, 2:42am UTC](https://forum.kirupa.com/t/dynamically-output-xml-childs/330922 "2013-04-09T02:42:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tompa](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@Tompa](https://forum.kirupa.com/u/Tompa)
#### Post date: [April 9, 2013, 2:42am UTC](https://forum.kirupa.com/t/dynamically-output-xml-childs/330922/1 "2013-04-09T02:42:29Z")

</div>

I’m trying to output stuff from a XML.  
This way works good:

```auto
trace("Length:" + [COLOR=#ff8c00]xmlData[/COLOR].TheChilds.length());

```

But what I want is to instead of writing [COLOR=#ff8c00]TheChilds[/COLOR], I would like it to be [COLOR=#ff0000]inputTextField.text[/COLOR].  
Like this:

```auto
trace("Length:" + xmlData.([COLOR=#ff0000]inputTextField.text[/COLOR]).length());

```

But this not work.  
I would really appreciate some help!

_Thanks in advance,  
Tompa_
