Tim Hunt 4673212416 xml import/export MDL-25103 was not working due to out-of-memory errors when calling xmltidy, which broke XML wellformedness.
The solution is to not tidy the XML. The XML generated is already quite well laid out, and if we want it better, we should fix that, rather than trying to load the whole file into memory to reformat it.

Also, while investigating this, I found that we were not handling the mime-type of the exported file very elegantly, so I added a new mime_type method (defaults to getting the mime type of the file extension).
2010-11-08 15:51:10 +00:00
..

FILE FORMATS FOR QUESTION IMPORT/EXPORT
------------------------------------

This directory contains plug-in sub-modules to add
import-export formats for Moodle questions

Each sub-module must contain at least a format.php file
containing a class that contains functions for reading,
writing, importing and exporting questions.

For correct operation the class name must be based on the
name of the containing directory, e.g.,

directory: webct
class:  class qformat_webct extends qformat_default {

Most of them are based on the class found in question/format.php.
See the comments therein for more information.