Open antton opened 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
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
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. :)
Thanks! Antton
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!
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.