Moodle (XML)
Bring a Moodle question bank into Next Exams with its categories, answer feedback and maths. Moodle XML is the best route out of Moodle: it carries more than GIFT and Aiken, and Moodle writes it for a whole category tree at once.
For how the preview, duplicates, quizzes and subjects work, see Import and Export.
Export from Moodle
- In your Moodle course, open Question bank → Export.
- Choose Moodle XML format.
- Pick the category to export. Its sub-categories come with it.
- Leave Write category to file ticked, so each question keeps its category. Next Exams reads it to make quizzes or subjects.
- Press Export questions to file and save the
.xmlfile.
Import into Next Exams
- Open Configuration → Import and choose the
.xmlfile. The format is detected as Moodle XML. - To file the questions under subjects that follow your Moodle categories, tick Create subjects from categories.
- Press Next. The preview lists each question with its type and category, and names any question it cannot import.
- To also get one quiz per category, tick Create a quiz for each category, then press Import.

What comes across
| Moodle question type | Becomes |
|---|---|
| Multiple choice, one answer | Multiple choice (single answer) |
| Multiple choice, several answers | Multiple choice (multiple answers) |
| True/False | True / false |
| Short answer | Short answer, with every answer that has a positive grade accepted |
| Numerical | Short answer, numeric, with the answer's tolerance |
| Essay | Essay, marked by hand |
With each question come:
- its name (the question's title) and question text, with its formatting;
- its default mark (the question's points);
- its general feedback (the explanation shown on the result page);
- the feedback of each answer, shown when a learner chooses it;
- its category, for quizzes and subjects;
- maths:
\( … \),\[ … \]and$$ … $$are kept and typeset with KaTeX, a<or>inside a formula included. See Mathematics (LaTeX).
What does not come across
- Other question types (matching, embedded answers (cloze), calculated, drag and drop, select missing words, and so on) are skipped. The preview names each one: Unsupported Moodle type "matching" (Match the organelles) — skipped. Description items are left out without a warning.
- Pictures inside the file are not imported. A question whose text shows an image from Moodle keeps a link that no longer works: upload the picture to the Next Exams media library and insert it again in the question editor.
- Answer weights. Every answer with a positive grade counts as a correct answer. Scoring follows the question's own partial-credit setting in Next Exams, not Moodle's percentages.
- Short-answer case sensitivity is not read: imported short answers ignore letter case, the Next Exams default. Change it in the question editor where case matters.
Good to know
- Importing the same file twice adds nothing: questions already in the bank are duplicates and are skipped (see Duplicates).
- A bank imported earlier without subjects can be sorted into subjects afterwards: import the same file again with Create subjects from categories ticked. The duplicates are filed under their categories.
- A category name with a slash in it, which Moodle writes as
//(Speed//time), stays one name. - Moodle's
$course$/top/and other context prefixes are left out of the category path.
Export to Moodle
Next Exams writes Moodle XML too: Configuration → Export, format Moodle XML. Multiple choice, true/false, short answer and essay go across. A speaking question goes as an essay. Other types are left out, and a comment at the end of the file says how many. In Moodle, use Question bank → Import → Moodle XML format.
See also
- Import and Export: the import steps, quizzes and subjects from categories
- GIFT: Moodle's text format
- Mathematics (LaTeX)