Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

User:Frank Ralf/Moodle XML1: Difference between revisions

From MoodleDocs
Line 2: Line 2:


== Minimum XML ==
== Minimum XML ==
Other than stated at [http://www.qedoc.org/en/index.php?title=Moodle_XML_format#Minimum_requirements Moodle XML - Minimum requirements] the minimum working Moodle XML file seems to be the following (short answer question). It gets imported using the default import settings.
 
Other than stated at Quedoc's Moodle XML documentation [http://www.qedoc.org/en/index.php?title=Moodle_XML_format#Minimum_requirements Minimum requirements] the minimum working Moodle XML file seems to be the following (short answer question). It gets imported using the default import settings.


Missing fields are populated with the default values during import which can be seen by re-exporting the question(s).
Missing fields are populated with the default values during import which can be seen by re-exporting the question(s).

Revision as of 15:16, 5 October 2009

This is only for keeping notes on some of my findings regarding Moodle XML.

Minimum XML

Other than stated at Quedoc's Moodle XML documentation Minimum requirements the minimum working Moodle XML file seems to be the following (short answer question). It gets imported using the default import settings.

Missing fields are populated with the default values during import which can be seen by re-exporting the question(s).

<?xml version="1.0" encoding="UTF-8"?> <quiz>

 <question type="shortanswer">
   <name>
     <text>Minimum question</text>
   </name>
   <questiontext>
     <text>What's the minimum XML required for import?</text>
   </questiontext>
   <answer fraction="100">
     <text>This here!</text>
   </answer>

</question> </quiz>