O'Reilly logo

Moodle 2 for Teaching 4-9 Year Olds Beginner's Guide by Nicholas Freear

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating the XML

To create the XML for our word search puzzle, follow these steps:

  1. Enter the XML prologue, and the opening and closing tags for the root element<?xml version="1.0" encoding="utf-8"?> <wordsearch> </wordsearch>. Remember that you can add new-lines and extra space—these are not significant in XML.
  2. Within the<wordsearch> element create the three elements<title> containing text (for example, 2-D Shapes),<grid> and<words>. Add width and height attributes to the opening<grid> element, both with values of 8.
  3. Add<gridline> opening and closing tags to the<grid> element. Copy the first line of eight letters from the spreadsheet, as shown in the next example file. I entered BRSFPHRC. Repeat for the next seven rows.
  4. Add<word> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required