# Flash / XML childNode Question

**URL:** <https://forum.kirupa.com/t/flash-xml-childnode-question/197374>\
**Category:** flash\
**Created:** [August 15, 2006, 10:17pm UTC](https://forum.kirupa.com/t/flash-xml-childnode-question/197374 "2006-08-15T22:17:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobby\_hamilton](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@bobby\_hamilton](https://forum.kirupa.com/u/bobby_hamilton)\
**Post date:** [August 15, 2006, 10:17pm UTC](https://forum.kirupa.com/t/flash-xml-childnode-question/197374/1 "2006-08-15T22:17:10Z")

</div>

Hey All,

I am working on a site which has an XML-driven tree component in it. I have already figured out that if I want a node to open and be selected onLoad I use:

```auto
_root.theTree.setIsOpen(_root.theTree.getTreeNodeAt(0), true, true, true);

```

However, the first node of my XML file has a child node which I would like to have selected onLoad instead. Id greatly appreciate it if someone could tell me how I would go about coding this so that when my site loads it opens the first node (revealing the child nodes) with the first child node selected. Thanx in advance!
