Hi Eric,
 
I did not manage to develop an exporter for moodle.  I did write a very
hackish awk script that takes a sort of org document (i.e. it is an org
document but has to follow a strict layout) and creates a Moodle XML
format file.

Lots of introspection of exported Moodle quizzes to figure out some of
the basics...  What I've got does the job so long as you only want
multiple choice questions and numeric answer questions (with tolerances)
and provides question specific feedback.  As I said, very hackish...

Thanks! I found there is http://www.qml2xml.pro/, which is a custom markup language for quizzes, and from which Moodle XML can be exported. Unfortunately the tool seems to be online-only, no downloadable version I could find. And also, the QML format is a bit strange.

I also started exploring the Moodle XML format, but I was happy to discover Moodle can also import other formats. I think I might stick to GIFT, Aiken or some other text-based format, since they seem easier to manipulate (albeit of course less powerful).

My ultimate ideal goal would be to be able to export a whole Org document into the whole contents of a course, including Books/pages (not sure yet if Moodle can import Markdown or something else), quizzes, etc. But quizzes would be a good start :)

I'll keep you posted if I come up with anything.

--Diego