# Xojo Guide #3 Contains Non-working Code.

**URL:** <https://forum.xojo.com/t/xojo-guide-3-contains-non-working-code/8566>\
**Category:** General\
**Created:** [June 6, 2013, 3:26am UTC](https://forum.xojo.com/t/xojo-guide-3-contains-non-working-code/8566 "2013-06-06T03:26:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Gibbs](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@Andrew\_Gibbs](https://forum.xojo.com/u/Andrew_Gibbs)\
**Post date:** [June 6, 2013, 3:26am UTC](https://forum.xojo.com/t/xojo-guide-3-contains-non-working-code/8566/1 "2013-06-06T03:26:05Z")

</div>

I’m working on an application that makes editing and creating Riivolution XML files easy, and have run into a problem regarding the “XML” Guide in the “UserGuide-Framework” on page 32.

You have:

```auto
Dim root As XmlNode
root = xml.FirstChild.
```

Mine:

```auto
Dim WiiDisc As XmlNode
WiiDisc = xml.FirstChild
```

When I run my application, I get a bug saying “xml.FirstChild” doesn’t exist, and it doesn’t exist, I’ve checked the code completion suggestions. Why does the guide have non-existent code and what is the “right” code?

Thanks.

---

<div class="post-metadata">

**Author:** ![Tim\_Hare](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_hare/32/176_2.png) [@Tim\_Hare](https://forum.xojo.com/u/Tim_Hare)\
**Post date:** [June 6, 2013, 3:46am UTC](https://forum.xojo.com/t/xojo-guide-3-contains-non-working-code/8566/2 "2013-06-06T03:46:50Z")

</div>

It is defined earlier in the chapter

```auto
Dim xml As New XMLDocument
```

That code is intended as a continuation of what came before.

---

<div class="post-metadata">

**Author:** ![Andrew\_Gibbs](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/898d66/32.png) [@Andrew\_Gibbs](https://forum.xojo.com/u/Andrew_Gibbs)\
**Post date:** [June 6, 2013, 4:34am UTC](https://forum.xojo.com/t/xojo-guide-3-contains-non-working-code/8566/3 "2013-06-06T04:34:08Z")

</div>

Thanks! Must have missed that.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 4:41pm UTC](https://forum.xojo.com/t/xojo-guide-3-contains-non-working-code/8566/4 "2020-10-29T16:41:57Z")

</div>


