Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: XML FAQ.

XML FAQ: Difference between revisions

From MoodleDocs
(→‎Is there only one kind of Moodle XML?: other XML that Moodle handles (Scorm/IMS))
(amended URL for Quedoc's Moodle XML documentation)
 
(25 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{stub}}
{{Main page}}(If you don't find the answer to your question here, just post the question. There might be someone out there to provide the answer.)


(If you don't find the answer to your question here, just post the question. There might be someone out there to provide the answer.)


=XML in general=
==XML in general==


==Where do I find general information about XML?==
===Where do I find general information about XML?===
* http://www.w3schools.com/xml/default.asp - A host of information and hands-on examples
* http://www.w3schools.com/xml/default.asp - A host of information and hands-on examples
*http://en.wikipedia.org/wiki/XML - A good starting point
*http://en.wikipedia.org/wiki/XML - A good starting point


==Moodle XML==


=Moodle XML=
===Is there only one kind of Moodle XML?===


==Is there only one kind of Moodle XML?==
No, there are (at least) two different kinds of Moodle XML:
# one for importing/exporting ''glossaries''
# and one for ''questions'' (quizzes), the latter being the one usually referred to as "Moodle XML".


No, there are (at least) two different kinds of Moodle XML, one for importing/exporting glossaries and one for questions (quizzes), the latter being the one usually referred to as "Moodle XML".
Then there is XML in the SCORM/IMS packages that Moodle can import and must be able to handle. These packages are educational content that has been marked up in a special way to be able to be used in compatible Learning Management Systems.


Then there is XML in the SCORM/IMS packages that Moodle can import and must be able to handle. These packages are educational content that has been marked up in a special way to be able to be used in compatible Learning Management Systems.
The ''course backup and restore'' process also generates an XML file (inside the zip file) that contains all the information about the course.


==Where do I find documentation about Moodle XML?==
===Where do I find documentation about Moodle XML?===


* The official documentation: [[Moodle XML]]
* The official documentation: [[Moodle XML]]
* A more thorough documentation: http://www.qedoc.org/en/index.php?title=Moodle_XML_format
* A more thorough documentation: [http://www.qedoc.org/index.php?title=Moodle_XML_format Moodle XML format] by Quedoc
: [http://www.qedoc.org/index.php?title=Problems_when_transferring_XML_format_into_Moodle Problems when transferring XML format into Moodle]


=Tools=
* [[User:Frank Ralf/Moodle XML1]] (work in progress)


==Are there tools for converting to and from Moodle XML?==
==Tools==
 
===Are there tools for converting to and from Moodle XML?===
* [http://vletools.com Moodle XML Converter] - allows to create XML from text files. Also can converse Moodle XML into text file. Supports quiz and glossary.
* [http://moodle.org/mod/forum/discuss.php?d=91224#p489764 Glossary to XML Converter]
* [http://moodle.org/mod/forum/discuss.php?d=91224#p489764 Glossary to XML Converter]
:A simple HTML file which converts TSV data to XML using JavaScript
:A simple HTML file which converts TSV data to XML using JavaScript
* Microsoft Office macros: http://finemetronome.com/moodle/
* Microsoft Office macros: http://finemetronome.com/moodle/
* OpenOffice macros (TBA)
* OpenOffice XML filters (TBA see [[User:Frank_Ralf/Moodle_XML1#OpenOffice_.26_XML|User:Frank_Ralf/Moodle XML1 > OpenOffice & XML]] for some pointers)


==How can I view and edit XML files?==
===How can I view and edit XML files?===
Most browsers are able to render XML files. Some even let you view the source text and do some basic editing.
XML is just text so you can view and edit it with any text editor. However, this isn't very easy for anything more than a trivial file. There are a number of dedicated XML editors available for many platforms. If you only need to view the XML, most browsers are able to render XML files. Some even let you view the source text and do some basic editing.


== See also ==


=Further information=
; Moodle Docs
* [[Import and export FAQ]]


==See also==
; Contributed modules and plugins
* [http://moodle.org/mod/forum/discuss.php?d=161367 DocBook Module to Parse DocBook XML]
 
; Books
* [http://www.sitepoint.com/books/xml1/ No Nonsense XML Web Development With PHP] by Thomas Myer


*[[Import and export FAQ]]


[[Category:FAQ]]
[[Category:FAQ]]
[[de:XML FAQ]]
[[es:XML FAQ]]

Latest revision as of 21:28, 7 August 2014

(If you don't find the answer to your question here, just post the question. There might be someone out there to provide the answer.)


XML in general

Where do I find general information about XML?

Moodle XML

Is there only one kind of Moodle XML?

No, there are (at least) two different kinds of Moodle XML:

  1. one for importing/exporting glossaries
  2. and one for questions (quizzes), the latter being the one usually referred to as "Moodle XML".

Then there is XML in the SCORM/IMS packages that Moodle can import and must be able to handle. These packages are educational content that has been marked up in a special way to be able to be used in compatible Learning Management Systems.

The course backup and restore process also generates an XML file (inside the zip file) that contains all the information about the course.

Where do I find documentation about Moodle XML?

Problems when transferring XML format into Moodle

Tools

Are there tools for converting to and from Moodle XML?

A simple HTML file which converts TSV data to XML using JavaScript

How can I view and edit XML files?

XML is just text so you can view and edit it with any text editor. However, this isn't very easy for anything more than a trivial file. There are a number of dedicated XML editors available for many platforms. If you only need to view the XML, most browsers are able to render XML files. Some even let you view the source text and do some basic editing.

See also

Moodle Docs
Contributed modules and plugins
Books