# XML firstChild

**URL:** <https://forum.kirupa.com/t/xml-firstchild/249309>\
**Category:** flash\
**Created:** [January 17, 2008, 1:08pm UTC](https://forum.kirupa.com/t/xml-firstchild/249309 "2008-01-17T13:08:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [January 17, 2008, 1:08pm UTC](https://forum.kirupa.com/t/xml-firstchild/249309/1 "2008-01-17T13:08:15Z")

</div>

Hello,

My XML File looks like this:

```auto

<box>
<details colour = "blue" />
</box>

<news>
<page contents = "Insert this text"/>
</news>

```

Now as I understand it, this.firstChild = box  
How would I write ??? = news

I know I can put ‘page’ into the ‘box’ Node, but my code is running a for loop with that section of the xml, as it contains numerous ‘details’, so I would like to keep it as above, as I also want to take the information using attributes.contents

Thanks…
