# Dynamic Variables / XML

**URL:** <https://forum.kirupa.com/t/dynamic-variables-xml/283693>\
**Category:** flash\
**Created:** [March 10, 2009, 1:58am UTC](https://forum.kirupa.com/t/dynamic-variables-xml/283693 "2009-03-10T01:58:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Olaf\_Forkbeard](https://avatars.discourse-cdn.com/v4/letter/o/c89c15/32.png) [@Olaf\_Forkbeard](https://forum.kirupa.com/u/Olaf_Forkbeard)\
**Post date:** [March 10, 2009, 1:58am UTC](https://forum.kirupa.com/t/dynamic-variables-xml/283693/1 "2009-03-10T01:58:37Z")

</div>

So lets say… I want to create a few dynamic variables (array) from an XML file. The file has an unknown # of list objects.

```auto

<!-- xml.xml -->
<list>
<quote qtype='0'>I am quote 1.</quote>
<quote qtype='0'>I am quote 2.</quote>
<quote qtype='0'>I am quote 3.</quote>
<quote qtype='0'>I am quote 4.</quote>
<quote qtype='0'>I am quote 5.</quote>
</list>

```

And I want to either put them all in an array. How would one go about including these files into a dynamic array without knowing how many of them their are? I have been trying (much much google) for a long time now to find how to do this, I just can’t grasp it.

Hopefully the end result, would be an array called… say: “Array”.
