Note: You are currently viewing documentation for Moodle 2.3. Up-to-date documentation for the latest stable version is available here: Frank Ralf/Moodle XML1.

User:Frank Ralf/Moodle XML1: Difference between revisions

From MoodleDocs
(New page: This is only for keeping notes on some of my findings regarding Moodle XML.)
 
No edit summary
Line 1: Line 1:
This is only for keeping notes on some of my findings regarding Moodle XML.
This is only for keeping notes on some of my findings regarding Moodle XML.
== Minimum XML ==
Other than stated at [http://www.qedoc.org/en/index.php?title=Moodle_XML_format#Minimum_requirements] the minimum working Moodle XML file seems to be the following (short answer question). It gets imported using the default settings.
<code>
<?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>
</code>

Revision as of 15:11, 5 October 2009

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

Minimum XML

Other than stated at [1] the minimum working Moodle XML file seems to be the following (short answer question). It gets imported using the default settings.

<?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>