tmuras / moosh

Moosh
GNU General Public License v3.0
232 stars 177 forks source link

Feature Request: Quiz export possibility #76

Open antton opened 9 years ago

antton commented 9 years ago

Hi,

As I read on the wiki we could import quiz .xml files into moodle but is not possible yet to export it. I think that would be usefull.

antton commented 9 years ago

Hi @tmuras,

I already did a little app to export Quiz's in XML format from moodle.

Now i'm trying to upload with the following command but I'm getting error and it's not possible to import XML quiz's.

Import quiz question from xml file to selected course. Example: import question from file path/to/question.xml to course with id 2

Not working at least in moodle 2.6

tmuras commented 9 years ago

Hi @antton, it may help if you attach/expose somewhere your non-working .xml file.

Is the source code for your export functionality available somewhere?

cheers, Tomek

antton commented 9 years ago

Hi @tmuras,

I let you one .xml quiz http://pastebin.com/Ac7QJkux

And the code to check what I did to export xml files, but maybe you could transform into moosh format and add export and import functionality on it. :)

http://pastebin.com/Bdz8svD5

Thanks! Antton

antton commented 9 years ago

Hi @tmuras, As I see the pastebin url expired already. I put an endless new one. http://pastebin.com/GH7B34jb (the .xml file) http://pastebin.com/5WcENkEu (export script)

Thanks for all!