basic.xml and to put it into a div tag called contentLYR.

Line 17: A break statement to close the case.

That's it for the JavaScript section. It's a pretty lightweight script that is capable of quite a few things that will be demonstrated later on.

Let's now turn our attention to the original document where the xml data will be loaded into. It's a pretty simple set up. All we need to do is insert a div tag with an id attribute and property of contentLYR like so;

<div id="contentLYR">
</div>

Then in a style sheet give it some properties and values. This is what I have used for this example: