Xojo Guide #3 Contains Non-working Code.

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:

Dim root As XmlNode
root = xml.FirstChild.

Mine:

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.

It is defined earlier in the chapter

Dim xml As New XMLDocument

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

Thanks! Must have missed that.