# Creating a new XML variable dynamically

**URL:** <https://forum.kirupa.com/t/creating-a-new-xml-variable-dynamically/210493>\
**Category:** Uncategorized\
**Created:** [December 19, 2006, 10:48am UTC](https://forum.kirupa.com/t/creating-a-new-xml-variable-dynamically/210493 "2006-12-19T10:48:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rororo](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rororo](https://forum.kirupa.com/u/rororo)\
**Post date:** [December 19, 2006, 10:48am UTC](https://forum.kirupa.com/t/creating-a-new-xml-variable-dynamically/210493/1 "2006-12-19T10:48:57Z")

</div>

Hi All,

Is there a way to create a new XML object dynamically? i need to do this because i don’t know how many xmls there will be…

for instance:

```auto
var myXML["n"]:XML = new XML();

```

… where “n” is the dynamic number…

thanks!
