# Adding child using xml values as instance name

**URL:** https://forum.kirupa.com/t/adding-child-using-xml-values-as-instance-name/276026
**Category:** flash
**Created:** [November 21, 2008, 12:56pm UTC](https://forum.kirupa.com/t/adding-child-using-xml-values-as-instance-name/276026 "2008-11-21T12:56:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kavu](https://avatars.discourse-cdn.com/v4/letter/k/3be4f8/32.png) [@kavu](https://forum.kirupa.com/u/kavu)
#### Post date: [November 21, 2008, 12:56pm UTC](https://forum.kirupa.com/t/adding-child-using-xml-values-as-instance-name/276026/1 "2008-11-21T12:56:56Z")

</div>

Hi  
Im trying to build menu that feeds xml.  
I got class that describes button and I want to add few instances of this class to display list and then populate it with date from xml.

Is it possible to add Childs of this class using as their names data stored in XMLList element? And than push it into Dictionary/Array element for futher use?

Thanks
