# XML structure from code

**URL:** https://forum.kirupa.com/t/xml-structure-from-code/278929
**Category:** flash
**Created:** [January 7, 2009, 6:18pm UTC](https://forum.kirupa.com/t/xml-structure-from-code/278929 "2009-01-07T18:18:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DHDesign](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DHDesign](https://forum.kirupa.com/u/DHDesign)
#### Post date: [January 7, 2009, 6:18pm UTC](https://forum.kirupa.com/t/xml-structure-from-code/278929/1 "2009-01-07T18:18:09Z")

</div>

can anyone please assist me in figuring out what the XML structure needs to be from the following code:

```auto

var months:Array = this.firstChild.childNodes;
    var days:Array = this.firstChild.childNodes;
    var years:Array = this.firstChild.childNodes;
    var details:Array = this.firstChild.childNodes;
    for (i=0; i<details.length; i++) {
        ma.push(months*.attributes.month);
        da.push(days*.attributes.day);
        ya.push(years*.attributes.year);
        det.push(details*.attributes.detail);
    }

```

i have the code, and it needs a file called events.xml, but I don’t have the events.xml file to know what the XML structure should be…so I’m trying to reverse engineer this.

any help would be really awesome and appreciated.

thx!
