# Adding node to XMLList object

**URL:** <https://forum.kirupa.com/t/adding-node-to-xmllist-object/244763>\
**Category:** flash\
**Created:** [November 21, 2007, 3:34pm UTC](https://forum.kirupa.com/t/adding-node-to-xmllist-object/244763 "2007-11-21T15:34:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![psych](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/psych/32/2839_2.png) [@psych](https://forum.kirupa.com/u/psych)\
**Post date:** [November 21, 2007, 3:34pm UTC](https://forum.kirupa.com/t/adding-node-to-xmllist-object/244763/1 "2007-11-21T15:34:11Z")

</div>

I have the following ‘myXML’ XML object:

```auto
<layout>
<region id="main" left="295" width="458" top="35" height="343"/> 
<region id="subs" left="265" width="520" top="440" height="50" />
<region id="links" left="45" width="150" top="70" height="180" />
<region id="video" left="48" width="160" top="330" height="125" />
<region id="links-down" left="45" width="150" top="165" height="95"/>
<region id="links-small" left="45" width="150" top="60" height="100"/>
</layout>

```

and ‘’ nodes loaded inside a XMLList object called ‘xml\_list’:

```auto
 var xml_list:XMLList = new XMLList(myXML.region);

```

and i would like to add for example this node to that XMLList:

```auto
 <region id="test" left="0" width="0" top="0" height="0"/>

```

How can i accomplish that? :ponder:

thanks in advance,  
best regards
