<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/34/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arthur-dent</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/34/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Arthur-dent"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/34/en/Special:Contributions/Arthur-dent"/>
	<updated>2026-04-16T15:46:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55823</id>
		<title>Import questions</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55823"/>
		<updated>2009-05-15T18:18:45Z</updated>

		<summary type="html">&lt;p&gt;Arthur-dent: /* Importing questions from an existing file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&lt;br /&gt;
Moodle has a number of different formats that can be used to import questions into [[Question bank]] categories and as [[Adding a question page|lesson question pages]]. These include some proprietary quiz software formats, as well as text files and Moodle formats.  &lt;br /&gt;
&lt;br /&gt;
==Importing questions from an existing file==&lt;br /&gt;
&lt;br /&gt;
In order to import questions in any format, you first need to create a quiz activity in your course. Fill in the form for the activity and then choose [Save and display]. Choose [edit] on the following page. You will then see an option [Import] which leads you where you want to go.&lt;br /&gt;
&lt;br /&gt;
There you can choose which type of  file you want to import. For more information on file types see below.&lt;br /&gt;
&lt;br /&gt;
==Question import formats==&lt;br /&gt;
&lt;br /&gt;
=== [[GIFT]] === &lt;br /&gt;
Moodle &#039;proprietary&#039; text format for import and export. Reasonably comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Moodle XML]] ===&lt;br /&gt;
Moodle &#039;proprietary&#039; xml format for import and export. Very comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Aiken]] === &lt;br /&gt;
This format is an easy way of writing multiple-choice questions for import.&lt;br /&gt;
&lt;br /&gt;
=== AON === &lt;br /&gt;
This format is the same as the missing word format, except it creates matching questions from the multiple choice questions. Please note that from Moodle 1.8 it will no longer be part of the standard Moodle.&lt;br /&gt;
&lt;br /&gt;
=== Blackboard === &lt;br /&gt;
From Moodle 1.7 onwards, if you&#039;re converting from Blackboard to Moodle, you can export your course and then import the question pools into Moodle using the Blackboard &amp;quot;POOL&amp;quot; type export format. It relies on XML functions being compiled into your PHP. Note that you must first unpack the exported zip file and provide Moodle with the appropriate .dat file. Note that this version does not work with Blackboard Version 6 and newer. (Use this format for ExamView 5 or 6)&lt;br /&gt;
&lt;br /&gt;
=== Blackboard V6+ === &lt;br /&gt;
This module can import questions saved in Blackboard&#039;s export format. It provides limited support for Blackboard Version 6 and 7. It relies on XML functions being compiled into your PHP. You must upload the zip file exported from Blackboard.&lt;br /&gt;
&lt;br /&gt;
=== [[WebCT format]] === &lt;br /&gt;
This format supports importing multiple choice and short answers questions from WebCT&#039;s text format.&lt;br /&gt;
&lt;br /&gt;
=== Course Test Manager === &lt;br /&gt;
This format enables you to import questions from the Course Test Manager from Course Technology.&lt;br /&gt;
&lt;br /&gt;
=== Embedded Answers (Cloze) === &lt;br /&gt;
This format is a multiple question, multiple answer question with embedded answers. They can be a bit tricky to develop, but they are a unique way of asking questions.&lt;br /&gt;
&lt;br /&gt;
=== Examview === &lt;br /&gt;
ExamView 4 supported an XML export format that Moodle can import.  If you are using a newer version of ExamView, you should export using Blackboard, extract the zip archive ExamView creates, then import in Moodle using Blackboard format (do not use 6+ format for moodle import, even though exam view calls this a Blackboard6+ file--it isn&#039;t).  You can choose one of the &amp;quot;.dat&amp;quot; files from the ExamView archive to import.  Note that images are not currently imported.  &lt;br /&gt;
&lt;br /&gt;
Any questions that included images must be edited to &amp;quot;re-link&amp;quot; those images.  The image files can be found in the file folder that is in your item test bank directory of your course files. Click the edit tool next to a question in the question list.  If one or more images files are included in the question, you should see a placeholder with the image file name in it embedded with text in the text edit window.  Click on the placeholder and then click on the insert image tool of the text editor.  Navigate to the folder containing the image files. (It will be in the folder you uploaded the zipped question bank to).  Find the file with the same name as indicated in the image placeholder.  Type the alternate text then click &amp;quot;okay&amp;quot; to re-link the image.  Click on &amp;quot;okay&amp;quot; to return to the question list. &lt;br /&gt;
&lt;br /&gt;
See http://www.rose-prism.org/moodle/mod/resource/view.php?id=6788 and http://www.rose-prism.org/moodle/mod/forum/discuss.php?d=1451&lt;br /&gt;
&lt;br /&gt;
== Question bank process ==&lt;br /&gt;
The question bank allows you a great deal of flexibility when importing questions. It is possible to import questions from a file on your network/computer or from a file that has been saved or uploaded into your course files.&lt;br /&gt;
&lt;br /&gt;
*Select import tab&lt;br /&gt;
*Select the question type to import&lt;br /&gt;
*General: pick the category, determine if the context and category information that maybe contained in the file should be used. Select what should happen if there are no grades or an error is detected in the import process.&lt;br /&gt;
*Determine the file to import and import it&lt;br /&gt;
**Import from file upload.  Use the browse function to import a file from your computer. Use the &amp;quot;Upload this file&amp;quot; button to import the questions.&lt;br /&gt;
**Import from file already in course files. A popup window will take you to the course files start page. Use the &amp;quot;Import from this file&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[Image:Question bank import file gen import 1.png|thumb|center|General and import file parameters sections]]&lt;br /&gt;
&lt;br /&gt;
==Lesson module process==&lt;br /&gt;
The question types that can be imported into a lesson are similar to question bank.&lt;br /&gt;
[[Image:Lesson Import question types.png|thumb|center|Lesson screen asking which file type will be imported]]&lt;br /&gt;
&lt;br /&gt;
[[Lesson module|Lesson]] can only import from a file located on the teachers computer.&lt;br /&gt;
*In edit, using the expanded view&lt;br /&gt;
*Select the position where questions should be inserted into the lesson&lt;br /&gt;
*Click on the Import question link between the pages.&lt;br /&gt;
*Select the file type&lt;br /&gt;
*Use the browse function to find the file on your computer&lt;br /&gt;
*Import the selected file.&lt;br /&gt;
&lt;br /&gt;
== Character encoding ==&lt;br /&gt;
&lt;br /&gt;
It is important that the imported file is encoded in the [http://en.wikipedia.org/wiki/UTF-8 UTF-8] standard.&lt;br /&gt;
&lt;br /&gt;
If this is not adhered to you may get import errors and/or strange characters in the imported materials. If the file is not UTF-8, an external tool must be used to change the encoding. Note that if only basic &#039;latin&#039; characters are used, then the coding issue can generally be ignored. Be particularly careful when creating questions using Microsoft Word. For reasons best known to themselves, Microsoft used their own encoding for some characters (incompatible with UTF-8) and this is likely to break the import.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Note:&#039;&#039; Prior to Moodle 1.6 the question file was assumed to be encoded in the same way as the language being used within the Moodle site. With Moodle 1.6 and onwards the imported file must be encoded in UTF-8.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; It may be easier and faster to type many questions into a &#039;&#039;&#039;single text file&#039;&#039;&#039;, than to create a series of Quiz or Lesson question pages.  Some teachers report that once they master creating questions in one of the formats to import, they do not have to wait for their Moodle site screen to refresh and the process of selecting the next question type to create.   &lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; Want to use questions from your quiz in a &#039;&#039;&#039;Lesson&#039;&#039;&#039;?  Export the question category in say a GIFT format, then use a text editor to delete questions, or perhaps use a search and replace function to change names or places.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* The help button link next to the import file button gives a lot of detail about each format in a popup window.&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=51316 escaping problem in gift import?] forum discussion&lt;br /&gt;
* [[Converting files to UTF-8]]&lt;br /&gt;
* [[Import and export FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Importer des questions]]&lt;br /&gt;
[[ja:問題のインポート]]&lt;br /&gt;
[[de:Fragen importieren]]&lt;/div&gt;</summary>
		<author><name>Arthur-dent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/34/en/index.php?title=Moodle_XML_format&amp;diff=55819</id>
		<title>Moodle XML format</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/34/en/index.php?title=Moodle_XML_format&amp;diff=55819"/>
		<updated>2009-05-15T18:11:18Z</updated>

		<summary type="html">&lt;p&gt;Arthur-dent: /* Overall structure of XML file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A word about validity==&lt;br /&gt;
&lt;br /&gt;
The XML parser assumes that the XML file is well formed and does not detect or report errors. If it is not you are very likely to get unexpected errors. If you are hand-coding the XML file it is strongly recommended that you pass it through some sort of XML verifier before importing into Moodle. A simple way to do this is to open the XML file using Firefox. Note particularly that embedded HTML fragments should be within CDATA sections.&lt;br /&gt;
&lt;br /&gt;
==Overall structure of XML file==&lt;br /&gt;
&lt;br /&gt;
The file is enclosed by tags as follows. It is &#039;&#039;&#039;important&#039;&#039;&#039; to make sure the xml-line is really the first line of the file. A blank first line turns your otherwise compliant file into a source of frustration. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;amp;quot;1.0&amp;amp;quot; ?&amp;gt;&lt;br /&gt;
 &amp;lt;quiz&amp;gt;&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 &amp;lt;/quiz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Within the &amp;lt;quiz&amp;gt; tags are any number of &amp;lt;question&amp;gt; tags. One of these &amp;lt;question&amp;gt; tags can be a dummy question with a &#039;&#039;category&#039;&#039; type to specify a category for the import/export. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;category&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;category&amp;gt;&lt;br /&gt;
        &amp;lt;text&amp;gt;$course$/XXXX&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;/category&amp;gt;&lt;br /&gt;
 &amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where XXXX is the new category name. If the category exists, the question(s) will be added to the existing course; otherwise a new category will be created. This only works if you have &amp;quot;Get category from file&amp;quot; checked.&lt;br /&gt;
&lt;br /&gt;
Multiple categories can be specified in the same file. Just add another dummy &#039;category&#039; question each time you would like to establish a new category and the questions that follow it will be placed there.&lt;br /&gt;
&lt;br /&gt;
The file must be encoded in [[UTF8]]&lt;br /&gt;
&lt;br /&gt;
Moodle XML import and export are balanced in functionality, so if you need to understand the format you can simply create some questions and export them to see what it looks like.&lt;br /&gt;
&lt;br /&gt;
==Tags common to all question types==&lt;br /&gt;
&lt;br /&gt;
A question is written as follows.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;multichoice|truefalse|shortanswer|match|cloze|essay|numerical|description&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;questiontext format=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;text&amp;gt;What is the answer to this question?&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;/questiontext&amp;gt;&lt;br /&gt;
     .&lt;br /&gt;
     .&lt;br /&gt;
     .&lt;br /&gt;
 &amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Format&amp;quot; selects the [[Formatting options]] for the question text. The options are &#039;&#039;&#039;moodle_auto_format&#039;&#039;&#039; (the default), &#039;&#039;&#039;html&#039;&#039;&#039;, &#039;&#039;&#039;plain_text&#039;&#039;&#039; and &#039;&#039;&#039;markdown&#039;&#039;&#039;. The choice effects the way in which the text will be displayed. &lt;br /&gt;
&lt;br /&gt;
Further tags, which usually include at least one &amp;lt;answer&amp;gt; tag, follow in the space marked with dots as child nodes to the &amp;lt;question&amp;gt; tag. The response-related tags are listed further down on this page. Various (optional?) tags are possible. &lt;br /&gt;
&lt;br /&gt;
* penalty&lt;br /&gt;
* generalfeedback&lt;br /&gt;
* defaultgrade&lt;br /&gt;
* hidden&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;image&amp;gt; tag contains the url of any included image. Nested within the &amp;lt;image&amp;gt; tag may be an &amp;lt;image_base64&amp;gt; tag which contains the actual image data encoded in base64 [http://www.php.net/manual/en/function.base64-encode.php].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In the following question type examples the common parts of the question are not shown to improve clarity. It&#039;s a good idea to export some examples yourself to see a full example.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Multiple choice==&lt;br /&gt;
&lt;br /&gt;
MC questions have one &amp;lt;answer&amp;gt; tag for each choice. Each choice can carry feedback and score weighting (by using the fraction attribute). In addition, an MC question has the following tags:&lt;br /&gt;
&lt;br /&gt;
* single &#039;&#039;(values: true/false)&#039;&#039;&lt;br /&gt;
* shuffleanswers &#039;&#039;(values: 1/0)&#039;&#039;&lt;br /&gt;
* correctfeedback &lt;br /&gt;
* partiallycorrectfeedback &lt;br /&gt;
* incorrectfeedback&lt;br /&gt;
* answernumbering (allowed values: &#039;none&#039;, &#039;abc&#039;, &#039;ABCD&#039; or &#039;123&#039;)&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;single&amp;gt; tag is used to distinguish single response (radio button) and multiple response (checkbox) variants.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;multichoice&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;The correct answer&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;A distractor&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Ooops!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;Another distractor&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Ooops!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;shuffleanswers&amp;gt;1&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
 &amp;lt;single&amp;gt;true&amp;lt;/single&amp;gt;&lt;br /&gt;
 &amp;lt;answernumbering&amp;gt;abc&amp;lt;/answernumbering&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== True/false ==&lt;br /&gt;
&lt;br /&gt;
Two answer tags are given, one which is true, and one which is false. The fraction attribute of the answer tag identifies which option is correct (100) and which is false (0). Feedback is supported. The following example shows the format when true is the correct answer and false is wrong.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;truefalse&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;text&amp;gt;true&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;text&amp;gt;false&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Ooops!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Short answer  ==&lt;br /&gt;
&lt;br /&gt;
The short answer question type supports alternative correct responses, each with its own weighting and feedback.  The Moodle XML format uses one &amp;lt;answer&amp;gt; tag for each of the alternative correct answers.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;usecase&amp;gt; tag toggles case-sensitivity with the values 1/0. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;shortanswer&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;The correct answer&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;shortanswer&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;The correct answer&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;An alternative answer&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Numerical response ==&lt;br /&gt;
&lt;br /&gt;
The following is a simplified version of the Moodle XML format for numerical responses.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;numerical&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;23&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Feedback&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moodle also supports a &amp;lt;tolerance&amp;gt; tag (how accurate must the number be?) and one or more &amp;lt;unit&amp;gt; tags. Unit tags have names and multipliers. E.g. if the main answer is in kilometres, an additional answer could be the equivalent in metres with a multiplier of 1000.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; prior to 1.7.2 the fraction was expressed as a value between 0 and 1 in a &amp;lt;fraction&amp;gt; element and the answer value was &#039;&#039;&#039;not&#039;&#039;&#039; enclosed in &amp;lt;text&amp;gt; tags. This format of the numerical question type is deprecated but will still be correctly imported if found (for now).&lt;br /&gt;
&lt;br /&gt;
== Matching ==&lt;br /&gt;
&lt;br /&gt;
Pair matching responses use the &amp;lt;shuffleanswers&amp;gt; tag to determine whether the order of the items should be randomized.&lt;br /&gt;
Each pair is contained inside a &amp;lt;subquestion&amp;gt; tag. The first item of each pair is contained with a &amp;lt;text&amp;gt; tag, while the second has an &amp;lt;answer&amp;gt; tag around it as well. Feedback and score weighting is not supported by Moodle for this response type.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;match&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;subquestion&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;This is the 1st item in the 1st pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;answer&amp;gt;&lt;br /&gt;
         &amp;lt;text&amp;gt;This is the 2nd item in the 1st pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;/subquestion&amp;gt;&lt;br /&gt;
 &amp;lt;subquestion&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;This is the 1st item in the 2nd pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;answer&amp;gt;&lt;br /&gt;
         &amp;lt;text&amp;gt;This is the 2nd item in the 2nd pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;/subquestion&amp;gt;&lt;br /&gt;
 &amp;lt;shuffleanswers&amp;gt;true&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Essay ==&lt;br /&gt;
&lt;br /&gt;
An example of the essay type question...&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;question type=&amp;quot;essay&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;text&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;/answer&amp;gt;&lt;br /&gt;
  &amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There isn&#039;t an answer and there isn&#039;t a grade in this case. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; prior to 1.7.2 the fraction was expressed as a value between 0 and 1 in a &amp;lt;fraction&amp;gt; element and the answer value was &#039;&#039;&#039;not&#039;&#039;&#039; enclosed in &amp;lt;text&amp;gt; tags. This format of the essay question type is deprecated but will still be correctly imported if found (for now).&lt;br /&gt;
&lt;br /&gt;
== Other question types ==&lt;br /&gt;
&lt;br /&gt;
=== Cloze ===&lt;br /&gt;
&lt;br /&gt;
It is supported, and depends on a special format for the &amp;lt;questiontext&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
=== Description response type===&lt;br /&gt;
&lt;br /&gt;
This response type has no further tags other than those contained in the question header (such as &amp;lt;questiontext&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
=== Random matching ===&lt;br /&gt;
&lt;br /&gt;
Moodle has a question type which consists of taking short answer questions in the same quiz and displaying them as a pair matching exercise. However Moodle is neither able to export nor import this question type.&lt;br /&gt;
&lt;br /&gt;
==Hints and Tips==&lt;br /&gt;
Here&#039;s a Word Template for generating Moodle XML [http://finemetronome.com/moodle/].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Export questions]]&lt;br /&gt;
*[[Import questions]]&lt;br /&gt;
*[[GIFT format]]&lt;br /&gt;
*[[Aiken format]]&lt;br /&gt;
*[[XML FAQ]]&lt;br /&gt;
*[[Import and export FAQ]] &lt;br /&gt;
&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
&lt;br /&gt;
[[ja:Moodle XMLフォーマット]]&lt;br /&gt;
[[de: Moodle XML-Format]]&lt;/div&gt;</summary>
		<author><name>Arthur-dent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/34/en/index.php?title=Moodle_XML_format&amp;diff=55818</id>
		<title>Moodle XML format</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/34/en/index.php?title=Moodle_XML_format&amp;diff=55818"/>
		<updated>2009-05-15T18:10:42Z</updated>

		<summary type="html">&lt;p&gt;Arthur-dent: /* Overall structure of XML file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==A word about validity==&lt;br /&gt;
&lt;br /&gt;
The XML parser assumes that the XML file is well formed and does not detect or report errors. If it is not you are very likely to get unexpected errors. If you are hand-coding the XML file it is strongly recommended that you pass it through some sort of XML verifier before importing into Moodle. A simple way to do this is to open the XML file using Firefox. Note particularly that embedded HTML fragments should be within CDATA sections.&lt;br /&gt;
&lt;br /&gt;
==Overall structure of XML file==&lt;br /&gt;
&lt;br /&gt;
The file is enclosed by tags as follows. It is important to make sure the xml-line is really the first line of the file. A black first line turns your otherwise compliant file into a source of frustration. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?xml version=&amp;amp;quot;1.0&amp;amp;quot; ?&amp;gt;&lt;br /&gt;
 &amp;lt;quiz&amp;gt;&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 &amp;lt;/quiz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Within the &amp;lt;quiz&amp;gt; tags are any number of &amp;lt;question&amp;gt; tags. One of these &amp;lt;question&amp;gt; tags can be a dummy question with a &#039;&#039;category&#039;&#039; type to specify a category for the import/export. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;category&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;category&amp;gt;&lt;br /&gt;
        &amp;lt;text&amp;gt;$course$/XXXX&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;/category&amp;gt;&lt;br /&gt;
 &amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where XXXX is the new category name. If the category exists, the question(s) will be added to the existing course; otherwise a new category will be created. This only works if you have &amp;quot;Get category from file&amp;quot; checked.&lt;br /&gt;
&lt;br /&gt;
Multiple categories can be specified in the same file. Just add another dummy &#039;category&#039; question each time you would like to establish a new category and the questions that follow it will be placed there.&lt;br /&gt;
&lt;br /&gt;
The file must be encoded in [[UTF8]]&lt;br /&gt;
&lt;br /&gt;
Moodle XML import and export are balanced in functionality, so if you need to understand the format you can simply create some questions and export them to see what it looks like.&lt;br /&gt;
&lt;br /&gt;
==Tags common to all question types==&lt;br /&gt;
&lt;br /&gt;
A question is written as follows.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;multichoice|truefalse|shortanswer|match|cloze|essay|numerical|description&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;questiontext format=&amp;quot;html&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;text&amp;gt;What is the answer to this question?&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;/questiontext&amp;gt;&lt;br /&gt;
     .&lt;br /&gt;
     .&lt;br /&gt;
     .&lt;br /&gt;
 &amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Format&amp;quot; selects the [[Formatting options]] for the question text. The options are &#039;&#039;&#039;moodle_auto_format&#039;&#039;&#039; (the default), &#039;&#039;&#039;html&#039;&#039;&#039;, &#039;&#039;&#039;plain_text&#039;&#039;&#039; and &#039;&#039;&#039;markdown&#039;&#039;&#039;. The choice effects the way in which the text will be displayed. &lt;br /&gt;
&lt;br /&gt;
Further tags, which usually include at least one &amp;lt;answer&amp;gt; tag, follow in the space marked with dots as child nodes to the &amp;lt;question&amp;gt; tag. The response-related tags are listed further down on this page. Various (optional?) tags are possible. &lt;br /&gt;
&lt;br /&gt;
* penalty&lt;br /&gt;
* generalfeedback&lt;br /&gt;
* defaultgrade&lt;br /&gt;
* hidden&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;image&amp;gt; tag contains the url of any included image. Nested within the &amp;lt;image&amp;gt; tag may be an &amp;lt;image_base64&amp;gt; tag which contains the actual image data encoded in base64 [http://www.php.net/manual/en/function.base64-encode.php].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;In the following question type examples the common parts of the question are not shown to improve clarity. It&#039;s a good idea to export some examples yourself to see a full example.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Multiple choice==&lt;br /&gt;
&lt;br /&gt;
MC questions have one &amp;lt;answer&amp;gt; tag for each choice. Each choice can carry feedback and score weighting (by using the fraction attribute). In addition, an MC question has the following tags:&lt;br /&gt;
&lt;br /&gt;
* single &#039;&#039;(values: true/false)&#039;&#039;&lt;br /&gt;
* shuffleanswers &#039;&#039;(values: 1/0)&#039;&#039;&lt;br /&gt;
* correctfeedback &lt;br /&gt;
* partiallycorrectfeedback &lt;br /&gt;
* incorrectfeedback&lt;br /&gt;
* answernumbering (allowed values: &#039;none&#039;, &#039;abc&#039;, &#039;ABCD&#039; or &#039;123&#039;)&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;single&amp;gt; tag is used to distinguish single response (radio button) and multiple response (checkbox) variants.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;multichoice&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;The correct answer&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;A distractor&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Ooops!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;Another distractor&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Ooops!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;shuffleanswers&amp;gt;1&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
 &amp;lt;single&amp;gt;true&amp;lt;/single&amp;gt;&lt;br /&gt;
 &amp;lt;answernumbering&amp;gt;abc&amp;lt;/answernumbering&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== True/false ==&lt;br /&gt;
&lt;br /&gt;
Two answer tags are given, one which is true, and one which is false. The fraction attribute of the answer tag identifies which option is correct (100) and which is false (0). Feedback is supported. The following example shows the format when true is the correct answer and false is wrong.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;truefalse&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;text&amp;gt;true&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;text&amp;gt;false&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Ooops!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Short answer  ==&lt;br /&gt;
&lt;br /&gt;
The short answer question type supports alternative correct responses, each with its own weighting and feedback.  The Moodle XML format uses one &amp;lt;answer&amp;gt; tag for each of the alternative correct answers.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;usecase&amp;gt; tag toggles case-sensitivity with the values 1/0. &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;shortanswer&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;The correct answer&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;shortanswer&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;The correct answer&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;An alternative answer&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Correct!&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Numerical response ==&lt;br /&gt;
&lt;br /&gt;
The following is a simplified version of the Moodle XML format for numerical responses.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;numerical&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;answer fraction=&amp;quot;100&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;23&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;feedback&amp;gt;&amp;lt;text&amp;gt;Feedback&amp;lt;/text&amp;gt;&amp;lt;/feedback&amp;gt;&lt;br /&gt;
 &amp;lt;/answer&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Moodle also supports a &amp;lt;tolerance&amp;gt; tag (how accurate must the number be?) and one or more &amp;lt;unit&amp;gt; tags. Unit tags have names and multipliers. E.g. if the main answer is in kilometres, an additional answer could be the equivalent in metres with a multiplier of 1000.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; prior to 1.7.2 the fraction was expressed as a value between 0 and 1 in a &amp;lt;fraction&amp;gt; element and the answer value was &#039;&#039;&#039;not&#039;&#039;&#039; enclosed in &amp;lt;text&amp;gt; tags. This format of the numerical question type is deprecated but will still be correctly imported if found (for now).&lt;br /&gt;
&lt;br /&gt;
== Matching ==&lt;br /&gt;
&lt;br /&gt;
Pair matching responses use the &amp;lt;shuffleanswers&amp;gt; tag to determine whether the order of the items should be randomized.&lt;br /&gt;
Each pair is contained inside a &amp;lt;subquestion&amp;gt; tag. The first item of each pair is contained with a &amp;lt;text&amp;gt; tag, while the second has an &amp;lt;answer&amp;gt; tag around it as well. Feedback and score weighting is not supported by Moodle for this response type.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;question type=&amp;quot;match&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;subquestion&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;This is the 1st item in the 1st pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;answer&amp;gt;&lt;br /&gt;
         &amp;lt;text&amp;gt;This is the 2nd item in the 1st pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;/subquestion&amp;gt;&lt;br /&gt;
 &amp;lt;subquestion&amp;gt;&lt;br /&gt;
     &amp;lt;text&amp;gt;This is the 1st item in the 2nd pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;answer&amp;gt;&lt;br /&gt;
         &amp;lt;text&amp;gt;This is the 2nd item in the 2nd pair.&amp;lt;/text&amp;gt;&lt;br /&gt;
     &amp;lt;/answer&amp;gt;&lt;br /&gt;
 &amp;lt;/subquestion&amp;gt;&lt;br /&gt;
 &amp;lt;shuffleanswers&amp;gt;true&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Essay ==&lt;br /&gt;
&lt;br /&gt;
An example of the essay type question...&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;question type=&amp;quot;essay&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;answer fraction=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
        &amp;lt;text&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
    &amp;lt;/answer&amp;gt;&lt;br /&gt;
  &amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There isn&#039;t an answer and there isn&#039;t a grade in this case. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; prior to 1.7.2 the fraction was expressed as a value between 0 and 1 in a &amp;lt;fraction&amp;gt; element and the answer value was &#039;&#039;&#039;not&#039;&#039;&#039; enclosed in &amp;lt;text&amp;gt; tags. This format of the essay question type is deprecated but will still be correctly imported if found (for now).&lt;br /&gt;
&lt;br /&gt;
== Other question types ==&lt;br /&gt;
&lt;br /&gt;
=== Cloze ===&lt;br /&gt;
&lt;br /&gt;
It is supported, and depends on a special format for the &amp;lt;questiontext&amp;gt; tag.&lt;br /&gt;
&lt;br /&gt;
=== Description response type===&lt;br /&gt;
&lt;br /&gt;
This response type has no further tags other than those contained in the question header (such as &amp;lt;questiontext&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
=== Random matching ===&lt;br /&gt;
&lt;br /&gt;
Moodle has a question type which consists of taking short answer questions in the same quiz and displaying them as a pair matching exercise. However Moodle is neither able to export nor import this question type.&lt;br /&gt;
&lt;br /&gt;
==Hints and Tips==&lt;br /&gt;
Here&#039;s a Word Template for generating Moodle XML [http://finemetronome.com/moodle/].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Export questions]]&lt;br /&gt;
*[[Import questions]]&lt;br /&gt;
*[[GIFT format]]&lt;br /&gt;
*[[Aiken format]]&lt;br /&gt;
*[[XML FAQ]]&lt;br /&gt;
*[[Import and export FAQ]] &lt;br /&gt;
&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
&lt;br /&gt;
[[ja:Moodle XMLフォーマット]]&lt;br /&gt;
[[de: Moodle XML-Format]]&lt;/div&gt;</summary>
		<author><name>Arthur-dent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55817</id>
		<title>Import questions</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55817"/>
		<updated>2009-05-15T18:08:04Z</updated>

		<summary type="html">&lt;p&gt;Arthur-dent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&lt;br /&gt;
Moodle has a number of different formats that can be used to import questions into [[Question bank]] categories and as [[Adding a question page|lesson question pages]]. These include some proprietary quiz software formats, as well as text files and Moodle formats.  &lt;br /&gt;
&lt;br /&gt;
==Importing questions from an existing file==&lt;br /&gt;
&lt;br /&gt;
In order to import questions in any format, you first need to create a quiz activity in your course. Fill in the form for the activity and then choose [Save and display]. Choose [edit] on the following page. You will then see an option [Import] which leads you where you want to go.&lt;br /&gt;
&lt;br /&gt;
==Question import formats==&lt;br /&gt;
&lt;br /&gt;
=== [[GIFT]] === &lt;br /&gt;
Moodle &#039;proprietary&#039; text format for import and export. Reasonably comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Moodle XML]] ===&lt;br /&gt;
Moodle &#039;proprietary&#039; xml format for import and export. Very comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Aiken]] === &lt;br /&gt;
This format is an easy way of writing multiple-choice questions for import.&lt;br /&gt;
&lt;br /&gt;
=== AON === &lt;br /&gt;
This format is the same as the missing word format, except it creates matching questions from the multiple choice questions. Please note that from Moodle 1.8 it will no longer be part of the standard Moodle.&lt;br /&gt;
&lt;br /&gt;
=== Blackboard === &lt;br /&gt;
From Moodle 1.7 onwards, if you&#039;re converting from Blackboard to Moodle, you can export your course and then import the question pools into Moodle using the Blackboard &amp;quot;POOL&amp;quot; type export format. It relies on XML functions being compiled into your PHP. Note that you must first unpack the exported zip file and provide Moodle with the appropriate .dat file. Note that this version does not work with Blackboard Version 6 and newer. (Use this format for ExamView 5 or 6)&lt;br /&gt;
&lt;br /&gt;
=== Blackboard V6+ === &lt;br /&gt;
This module can import questions saved in Blackboard&#039;s export format. It provides limited support for Blackboard Version 6 and 7. It relies on XML functions being compiled into your PHP. You must upload the zip file exported from Blackboard.&lt;br /&gt;
&lt;br /&gt;
=== [[WebCT format]] === &lt;br /&gt;
This format supports importing multiple choice and short answers questions from WebCT&#039;s text format.&lt;br /&gt;
&lt;br /&gt;
=== Course Test Manager === &lt;br /&gt;
This format enables you to import questions from the Course Test Manager from Course Technology.&lt;br /&gt;
&lt;br /&gt;
=== Embedded Answers (Cloze) === &lt;br /&gt;
This format is a multiple question, multiple answer question with embedded answers. They can be a bit tricky to develop, but they are a unique way of asking questions.&lt;br /&gt;
&lt;br /&gt;
=== Examview === &lt;br /&gt;
ExamView 4 supported an XML export format that Moodle can import.  If you are using a newer version of ExamView, you should export using Blackboard, extract the zip archive ExamView creates, then import in Moodle using Blackboard format (do not use 6+ format for moodle import, even though exam view calls this a Blackboard6+ file--it isn&#039;t).  You can choose one of the &amp;quot;.dat&amp;quot; files from the ExamView archive to import.  Note that images are not currently imported.  &lt;br /&gt;
&lt;br /&gt;
Any questions that included images must be edited to &amp;quot;re-link&amp;quot; those images.  The image files can be found in the file folder that is in your item test bank directory of your course files. Click the edit tool next to a question in the question list.  If one or more images files are included in the question, you should see a placeholder with the image file name in it embedded with text in the text edit window.  Click on the placeholder and then click on the insert image tool of the text editor.  Navigate to the folder containing the image files. (It will be in the folder you uploaded the zipped question bank to).  Find the file with the same name as indicated in the image placeholder.  Type the alternate text then click &amp;quot;okay&amp;quot; to re-link the image.  Click on &amp;quot;okay&amp;quot; to return to the question list. &lt;br /&gt;
&lt;br /&gt;
See http://www.rose-prism.org/moodle/mod/resource/view.php?id=6788 and http://www.rose-prism.org/moodle/mod/forum/discuss.php?d=1451&lt;br /&gt;
&lt;br /&gt;
== Question bank process ==&lt;br /&gt;
The question bank allows you a great deal of flexibility when importing questions. It is possible to import questions from a file on your network/computer or from a file that has been saved or uploaded into your course files.&lt;br /&gt;
&lt;br /&gt;
*Select import tab&lt;br /&gt;
*Select the question type to import&lt;br /&gt;
*General: pick the category, determine if the context and category information that maybe contained in the file should be used. Select what should happen if there are no grades or an error is detected in the import process.&lt;br /&gt;
*Determine the file to import and import it&lt;br /&gt;
**Import from file upload.  Use the browse function to import a file from your computer. Use the &amp;quot;Upload this file&amp;quot; button to import the questions.&lt;br /&gt;
**Import from file already in course files. A popup window will take you to the course files start page. Use the &amp;quot;Import from this file&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[Image:Question bank import file gen import 1.png|thumb|center|General and import file parameters sections]]&lt;br /&gt;
&lt;br /&gt;
==Lesson module process==&lt;br /&gt;
The question types that can be imported into a lesson are similar to question bank.&lt;br /&gt;
[[Image:Lesson Import question types.png|thumb|center|Lesson screen asking which file type will be imported]]&lt;br /&gt;
&lt;br /&gt;
[[Lesson module|Lesson]] can only import from a file located on the teachers computer.&lt;br /&gt;
*In edit, using the expanded view&lt;br /&gt;
*Select the position where questions should be inserted into the lesson&lt;br /&gt;
*Click on the Import question link between the pages.&lt;br /&gt;
*Select the file type&lt;br /&gt;
*Use the browse function to find the file on your computer&lt;br /&gt;
*Import the selected file.&lt;br /&gt;
&lt;br /&gt;
== Character encoding ==&lt;br /&gt;
&lt;br /&gt;
It is important that the imported file is encoded in the [http://en.wikipedia.org/wiki/UTF-8 UTF-8] standard.&lt;br /&gt;
&lt;br /&gt;
If this is not adhered to you may get import errors and/or strange characters in the imported materials. If the file is not UTF-8, an external tool must be used to change the encoding. Note that if only basic &#039;latin&#039; characters are used, then the coding issue can generally be ignored. Be particularly careful when creating questions using Microsoft Word. For reasons best known to themselves, Microsoft used their own encoding for some characters (incompatible with UTF-8) and this is likely to break the import.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Note:&#039;&#039; Prior to Moodle 1.6 the question file was assumed to be encoded in the same way as the language being used within the Moodle site. With Moodle 1.6 and onwards the imported file must be encoded in UTF-8.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; It may be easier and faster to type many questions into a &#039;&#039;&#039;single text file&#039;&#039;&#039;, than to create a series of Quiz or Lesson question pages.  Some teachers report that once they master creating questions in one of the formats to import, they do not have to wait for their Moodle site screen to refresh and the process of selecting the next question type to create.   &lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; Want to use questions from your quiz in a &#039;&#039;&#039;Lesson&#039;&#039;&#039;?  Export the question category in say a GIFT format, then use a text editor to delete questions, or perhaps use a search and replace function to change names or places.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* The help button link next to the import file button gives a lot of detail about each format in a popup window.&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=51316 escaping problem in gift import?] forum discussion&lt;br /&gt;
* [[Converting files to UTF-8]]&lt;br /&gt;
* [[Import and export FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Importer des questions]]&lt;br /&gt;
[[ja:問題のインポート]]&lt;br /&gt;
[[de:Fragen importieren]]&lt;/div&gt;</summary>
		<author><name>Arthur-dent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55816</id>
		<title>Import questions</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55816"/>
		<updated>2009-05-15T18:07:15Z</updated>

		<summary type="html">&lt;p&gt;Arthur-dent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&lt;br /&gt;
Moodle has a number of different formats that can be used to import questions into [[Question bank]] categories and as [[Adding a question page|lesson question pages]]. These include some proprietary quiz software formats, as well as text files and Moodle formats.  &lt;br /&gt;
&lt;br /&gt;
==Importing from a file==&lt;br /&gt;
&lt;br /&gt;
In order to import questions in any format, you first need to create a quiz activity in your course. Fill in the form for the activity and then choose [Save and display]. Choose [edit] on the following page. You will then see an option [Import] which leads you where you want to go.&lt;br /&gt;
&lt;br /&gt;
==Question import formats==&lt;br /&gt;
&lt;br /&gt;
=== [[GIFT]] === &lt;br /&gt;
Moodle &#039;proprietary&#039; text format for import and export. Reasonably comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Moodle XML]] ===&lt;br /&gt;
Moodle &#039;proprietary&#039; xml format for import and export. Very comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Aiken]] === &lt;br /&gt;
This format is an easy way of writing multiple-choice questions for import.&lt;br /&gt;
&lt;br /&gt;
=== AON === &lt;br /&gt;
This format is the same as the missing word format, except it creates matching questions from the multiple choice questions. Please note that from Moodle 1.8 it will no longer be part of the standard Moodle.&lt;br /&gt;
&lt;br /&gt;
=== Blackboard === &lt;br /&gt;
From Moodle 1.7 onwards, if you&#039;re converting from Blackboard to Moodle, you can export your course and then import the question pools into Moodle using the Blackboard &amp;quot;POOL&amp;quot; type export format. It relies on XML functions being compiled into your PHP. Note that you must first unpack the exported zip file and provide Moodle with the appropriate .dat file. Note that this version does not work with Blackboard Version 6 and newer. (Use this format for ExamView 5 or 6)&lt;br /&gt;
&lt;br /&gt;
=== Blackboard V6+ === &lt;br /&gt;
This module can import questions saved in Blackboard&#039;s export format. It provides limited support for Blackboard Version 6 and 7. It relies on XML functions being compiled into your PHP. You must upload the zip file exported from Blackboard.&lt;br /&gt;
&lt;br /&gt;
=== [[WebCT format]] === &lt;br /&gt;
This format supports importing multiple choice and short answers questions from WebCT&#039;s text format.&lt;br /&gt;
&lt;br /&gt;
=== Course Test Manager === &lt;br /&gt;
This format enables you to import questions from the Course Test Manager from Course Technology.&lt;br /&gt;
&lt;br /&gt;
=== Embedded Answers (Cloze) === &lt;br /&gt;
This format is a multiple question, multiple answer question with embedded answers. They can be a bit tricky to develop, but they are a unique way of asking questions.&lt;br /&gt;
&lt;br /&gt;
=== Examview === &lt;br /&gt;
ExamView 4 supported an XML export format that Moodle can import.  If you are using a newer version of ExamView, you should export using Blackboard, extract the zip archive ExamView creates, then import in Moodle using Blackboard format (do not use 6+ format for moodle import, even though exam view calls this a Blackboard6+ file--it isn&#039;t).  You can choose one of the &amp;quot;.dat&amp;quot; files from the ExamView archive to import.  Note that images are not currently imported.  &lt;br /&gt;
&lt;br /&gt;
Any questions that included images must be edited to &amp;quot;re-link&amp;quot; those images.  The image files can be found in the file folder that is in your item test bank directory of your course files. Click the edit tool next to a question in the question list.  If one or more images files are included in the question, you should see a placeholder with the image file name in it embedded with text in the text edit window.  Click on the placeholder and then click on the insert image tool of the text editor.  Navigate to the folder containing the image files. (It will be in the folder you uploaded the zipped question bank to).  Find the file with the same name as indicated in the image placeholder.  Type the alternate text then click &amp;quot;okay&amp;quot; to re-link the image.  Click on &amp;quot;okay&amp;quot; to return to the question list. &lt;br /&gt;
&lt;br /&gt;
See http://www.rose-prism.org/moodle/mod/resource/view.php?id=6788 and http://www.rose-prism.org/moodle/mod/forum/discuss.php?d=1451&lt;br /&gt;
&lt;br /&gt;
== Question bank process ==&lt;br /&gt;
The question bank allows you a great deal of flexibility when importing questions. It is possible to import questions from a file on your network/computer or from a file that has been saved or uploaded into your course files.&lt;br /&gt;
&lt;br /&gt;
*Select import tab&lt;br /&gt;
*Select the question type to import&lt;br /&gt;
*General: pick the category, determine if the context and category information that maybe contained in the file should be used. Select what should happen if there are no grades or an error is detected in the import process.&lt;br /&gt;
*Determine the file to import and import it&lt;br /&gt;
**Import from file upload.  Use the browse function to import a file from your computer. Use the &amp;quot;Upload this file&amp;quot; button to import the questions.&lt;br /&gt;
**Import from file already in course files. A popup window will take you to the course files start page. Use the &amp;quot;Import from this file&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[Image:Question bank import file gen import 1.png|thumb|center|General and import file parameters sections]]&lt;br /&gt;
&lt;br /&gt;
==Lesson module process==&lt;br /&gt;
The question types that can be imported into a lesson are similar to question bank.&lt;br /&gt;
[[Image:Lesson Import question types.png|thumb|center|Lesson screen asking which file type will be imported]]&lt;br /&gt;
&lt;br /&gt;
[[Lesson module|Lesson]] can only import from a file located on the teachers computer.&lt;br /&gt;
*In edit, using the expanded view&lt;br /&gt;
*Select the position where questions should be inserted into the lesson&lt;br /&gt;
*Click on the Import question link between the pages.&lt;br /&gt;
*Select the file type&lt;br /&gt;
*Use the browse function to find the file on your computer&lt;br /&gt;
*Import the selected file.&lt;br /&gt;
&lt;br /&gt;
== Character encoding ==&lt;br /&gt;
&lt;br /&gt;
It is important that the imported file is encoded in the [http://en.wikipedia.org/wiki/UTF-8 UTF-8] standard.&lt;br /&gt;
&lt;br /&gt;
If this is not adhered to you may get import errors and/or strange characters in the imported materials. If the file is not UTF-8, an external tool must be used to change the encoding. Note that if only basic &#039;latin&#039; characters are used, then the coding issue can generally be ignored. Be particularly careful when creating questions using Microsoft Word. For reasons best known to themselves, Microsoft used their own encoding for some characters (incompatible with UTF-8) and this is likely to break the import.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Note:&#039;&#039; Prior to Moodle 1.6 the question file was assumed to be encoded in the same way as the language being used within the Moodle site. With Moodle 1.6 and onwards the imported file must be encoded in UTF-8.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; It may be easier and faster to type many questions into a &#039;&#039;&#039;single text file&#039;&#039;&#039;, than to create a series of Quiz or Lesson question pages.  Some teachers report that once they master creating questions in one of the formats to import, they do not have to wait for their Moodle site screen to refresh and the process of selecting the next question type to create.   &lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; Want to use questions from your quiz in a &#039;&#039;&#039;Lesson&#039;&#039;&#039;?  Export the question category in say a GIFT format, then use a text editor to delete questions, or perhaps use a search and replace function to change names or places.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* The help button link next to the import file button gives a lot of detail about each format in a popup window.&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=51316 escaping problem in gift import?] forum discussion&lt;br /&gt;
* [[Converting files to UTF-8]]&lt;br /&gt;
* [[Import and export FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Importer des questions]]&lt;br /&gt;
[[ja:問題のインポート]]&lt;br /&gt;
[[de:Fragen importieren]]&lt;/div&gt;</summary>
		<author><name>Arthur-dent</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55815</id>
		<title>Import questions</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/34/en/index.php?title=Import_questions&amp;diff=55815"/>
		<updated>2009-05-15T18:04:03Z</updated>

		<summary type="html">&lt;p&gt;Arthur-dent: /* Moodle XML */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&lt;br /&gt;
Moodle has a number of different formats that can be used to import questions into [[Question bank]] categories and as [[Adding a question page|lesson question pages]]. These include some proprietary quiz software formats, as well as text files and Moodle formats.  &lt;br /&gt;
&lt;br /&gt;
==Question import formats==&lt;br /&gt;
&lt;br /&gt;
=== [[GIFT]] === &lt;br /&gt;
Moodle &#039;proprietary&#039; text format for import and export. Reasonably comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Moodle XML]] ===&lt;br /&gt;
Moodle &#039;proprietary&#039; xml format for import and export. Very comprehensive.&lt;br /&gt;
&lt;br /&gt;
=== [[Aiken]] === &lt;br /&gt;
This format is an easy way of writing multiple-choice questions for import.&lt;br /&gt;
&lt;br /&gt;
=== AON === &lt;br /&gt;
This format is the same as the missing word format, except it creates matching questions from the multiple choice questions. Please note that from Moodle 1.8 it will no longer be part of the standard Moodle.&lt;br /&gt;
&lt;br /&gt;
=== Blackboard === &lt;br /&gt;
From Moodle 1.7 onwards, if you&#039;re converting from Blackboard to Moodle, you can export your course and then import the question pools into Moodle using the Blackboard &amp;quot;POOL&amp;quot; type export format. It relies on XML functions being compiled into your PHP. Note that you must first unpack the exported zip file and provide Moodle with the appropriate .dat file. Note that this version does not work with Blackboard Version 6 and newer. (Use this format for ExamView 5 or 6)&lt;br /&gt;
&lt;br /&gt;
=== Blackboard V6+ === &lt;br /&gt;
This module can import questions saved in Blackboard&#039;s export format. It provides limited support for Blackboard Version 6 and 7. It relies on XML functions being compiled into your PHP. You must upload the zip file exported from Blackboard.&lt;br /&gt;
&lt;br /&gt;
=== [[WebCT format]] === &lt;br /&gt;
This format supports importing multiple choice and short answers questions from WebCT&#039;s text format.&lt;br /&gt;
&lt;br /&gt;
=== Course Test Manager === &lt;br /&gt;
This format enables you to import questions from the Course Test Manager from Course Technology.&lt;br /&gt;
&lt;br /&gt;
=== Embedded Answers (Cloze) === &lt;br /&gt;
This format is a multiple question, multiple answer question with embedded answers. They can be a bit tricky to develop, but they are a unique way of asking questions.&lt;br /&gt;
&lt;br /&gt;
=== Examview === &lt;br /&gt;
ExamView 4 supported an XML export format that Moodle can import.  If you are using a newer version of ExamView, you should export using Blackboard, extract the zip archive ExamView creates, then import in Moodle using Blackboard format (do not use 6+ format for moodle import, even though exam view calls this a Blackboard6+ file--it isn&#039;t).  You can choose one of the &amp;quot;.dat&amp;quot; files from the ExamView archive to import.  Note that images are not currently imported.  &lt;br /&gt;
&lt;br /&gt;
Any questions that included images must be edited to &amp;quot;re-link&amp;quot; those images.  The image files can be found in the file folder that is in your item test bank directory of your course files. Click the edit tool next to a question in the question list.  If one or more images files are included in the question, you should see a placeholder with the image file name in it embedded with text in the text edit window.  Click on the placeholder and then click on the insert image tool of the text editor.  Navigate to the folder containing the image files. (It will be in the folder you uploaded the zipped question bank to).  Find the file with the same name as indicated in the image placeholder.  Type the alternate text then click &amp;quot;okay&amp;quot; to re-link the image.  Click on &amp;quot;okay&amp;quot; to return to the question list. &lt;br /&gt;
&lt;br /&gt;
See http://www.rose-prism.org/moodle/mod/resource/view.php?id=6788 and http://www.rose-prism.org/moodle/mod/forum/discuss.php?d=1451&lt;br /&gt;
&lt;br /&gt;
== Question bank process ==&lt;br /&gt;
The question bank allows you a great deal of flexibility when importing questions. It is possible to import questions from a file on your network/computer or from a file that has been saved or uploaded into your course files.&lt;br /&gt;
&lt;br /&gt;
*Select import tab&lt;br /&gt;
*Select the question type to import&lt;br /&gt;
*General: pick the category, determine if the context and category information that maybe contained in the file should be used. Select what should happen if there are no grades or an error is detected in the import process.&lt;br /&gt;
*Determine the file to import and import it&lt;br /&gt;
**Import from file upload.  Use the browse function to import a file from your computer. Use the &amp;quot;Upload this file&amp;quot; button to import the questions.&lt;br /&gt;
**Import from file already in course files. A popup window will take you to the course files start page. Use the &amp;quot;Import from this file&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
[[Image:Question bank import file gen import 1.png|thumb|center|General and import file parameters sections]]&lt;br /&gt;
&lt;br /&gt;
==Lesson module process==&lt;br /&gt;
The question types that can be imported into a lesson are similar to question bank.&lt;br /&gt;
[[Image:Lesson Import question types.png|thumb|center|Lesson screen asking which file type will be imported]]&lt;br /&gt;
&lt;br /&gt;
[[Lesson module|Lesson]] can only import from a file located on the teachers computer.&lt;br /&gt;
*In edit, using the expanded view&lt;br /&gt;
*Select the position where questions should be inserted into the lesson&lt;br /&gt;
*Click on the Import question link between the pages.&lt;br /&gt;
*Select the file type&lt;br /&gt;
*Use the browse function to find the file on your computer&lt;br /&gt;
*Import the selected file.&lt;br /&gt;
&lt;br /&gt;
== Character encoding ==&lt;br /&gt;
&lt;br /&gt;
It is important that the imported file is encoded in the [http://en.wikipedia.org/wiki/UTF-8 UTF-8] standard.&lt;br /&gt;
&lt;br /&gt;
If this is not adhered to you may get import errors and/or strange characters in the imported materials. If the file is not UTF-8, an external tool must be used to change the encoding. Note that if only basic &#039;latin&#039; characters are used, then the coding issue can generally be ignored. Be particularly careful when creating questions using Microsoft Word. For reasons best known to themselves, Microsoft used their own encoding for some characters (incompatible with UTF-8) and this is likely to break the import.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Note:&#039;&#039; Prior to Moodle 1.6 the question file was assumed to be encoded in the same way as the language being used within the Moodle site. With Moodle 1.6 and onwards the imported file must be encoded in UTF-8.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks==&lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; It may be easier and faster to type many questions into a &#039;&#039;&#039;single text file&#039;&#039;&#039;, than to create a series of Quiz or Lesson question pages.  Some teachers report that once they master creating questions in one of the formats to import, they do not have to wait for their Moodle site screen to refresh and the process of selecting the next question type to create.   &lt;br /&gt;
*&#039;&#039;TIP:&#039;&#039; Want to use questions from your quiz in a &#039;&#039;&#039;Lesson&#039;&#039;&#039;?  Export the question category in say a GIFT format, then use a text editor to delete questions, or perhaps use a search and replace function to change names or places.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* The help button link next to the import file button gives a lot of detail about each format in a popup window.&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=51316 escaping problem in gift import?] forum discussion&lt;br /&gt;
* [[Converting files to UTF-8]]&lt;br /&gt;
* [[Import and export FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Importer des questions]]&lt;br /&gt;
[[ja:問題のインポート]]&lt;br /&gt;
[[de:Fragen importieren]]&lt;/div&gt;</summary>
		<author><name>Arthur-dent</name></author>
	</entry>
</feed>