"Moodle XML" format

This Moodle specific format imports quiz questions that have previously been exported in the same format. The format is straightforward and is best demonstrated by exporting a category in the Moodle XML format. The XML format is capabable of importing image files.

Optional questiontype plugins can extend this format.

Category Switching

You can insert a special dummy question into the XML file to specify the category path into which the following questions will be inserted. If the category or categories do not exist they will be created. Note that the from file: option must be ticked on the option page or this code will be ignored completely. You can switch categories in the xml file as often as you wish.

An example of the format is as follows:

<question type="category">
    <category>
        tom/dick/harry
    </category>
</question>