How to Create a Matching Quiz Using the Moodle XML Converter

Create a text file using your favorite editor., Follow the example of the file listed above, which is correctly formatted for a matching quiz conversion., Save the file as a text file., Upload the file to the Moodle XML converter quiz page as shown...

8 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Create a text file using your favorite editor.

    Text editors such as Textpad and Programmer's notepad usually include options to display line numbers, visible spaces and to enable automatic word wrapping.

    The required file format is displayed on the Moodle XML converter web site.

    See below.
  2. Step 2: Follow the example of the file listed above

    Note that the first word in the file is 'matching'

    followed by an indexed main question and then the indexed subordinate-questions with a matching answer.

    There must be only one space between the index number and the question.

    Each subordinate question is prefixed with the phrase 'match:'.

    All key phrases must be in lowercase. , The actual file contents are reproduced here.

    Feel free to copy and paste these contents and experiment with the XML converter. ,, In the sample, indexed numbers in the format
    1.,
    2.-- were used, so the suitable parser option will be: ^(\d+)\s*(.+)
    - if choices are like
    1.
    2.
    3. or 1) 2) 3) , If it does, then your conversion worked. , If you have followed the steps outlined in this article, then import the XML to a quiz on a Moodle web site using Moodle XML format.
  3. Step 3: which is correctly formatted for a matching quiz conversion.

  4. Step 4: Save the file as a text file.

  5. Step 5: Upload the file to the Moodle XML converter quiz page as shown in the image.

  6. Step 6: Select the parser option suitable for the choice type in your file.

  7. Step 7: Make sure the output pane looks like the display below.

  8. Step 8: To create the XML file select the input file again and click Convert – to view ram XML or Download XML.

Detailed Guide

Text editors such as Textpad and Programmer's notepad usually include options to display line numbers, visible spaces and to enable automatic word wrapping.

The required file format is displayed on the Moodle XML converter web site.

See below.

Note that the first word in the file is 'matching'

followed by an indexed main question and then the indexed subordinate-questions with a matching answer.

There must be only one space between the index number and the question.

Each subordinate question is prefixed with the phrase 'match:'.

All key phrases must be in lowercase. , The actual file contents are reproduced here.

Feel free to copy and paste these contents and experiment with the XML converter. ,, In the sample, indexed numbers in the format
1.,
2.-- were used, so the suitable parser option will be: ^(\d+)\s*(.+)
- if choices are like
1.
2.
3. or 1) 2) 3) , If it does, then your conversion worked. , If you have followed the steps outlined in this article, then import the XML to a quiz on a Moodle web site using Moodle XML format.

About the Author

D

Dennis Martinez

Experienced content creator specializing in crafts guides and tutorials.

63 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: