Branching Scenario - ability to save/load the branching scenario tree in an XML file
Submitted by deepak2k on Thu, 03/11/2021 - 21:15
Forums:
Branching Scenario is a great tool. I was wondering if there is a capability to save a branching scenario tree to an XML file, and also be able to load it from an XML file. Branching Scenario is essentially a decision tree, and there are third-party decision tree software tools that can potentially generate XMLs in the Branching Scenario format. This would be a great addition for automatically authoring Branching Scenarios from third-party tools.
Summary:
Saving Branching Scenario in XML format
Content types:
otacke
Thu, 03/11/2021 - 22:39
Permalink
Hi deepak2k!Branching
Hi deepak2k!
Branching scenarios just expect parameters properly structured in json format, so it should not be complicated to transform XML as required. You would have to feed those into h5p files to be uploaded or into the respective params of existing files - both probably requiring more work.
Best,
Oliver
deepak2k
Fri, 03/12/2021 - 02:56
Permalink
Hi Oliver,Thank-you for the
Hi Oliver,
Thank-you for the useful information. Json format would also work instead of XML. Currently, is there a way in the Branching Scenario plugin for Moodle to populate the branching content directly through Json?
Best Regards,
Deepak.
deepak2k
Fri, 03/12/2021 - 02:57
Permalink
Hi Oliver,Thank-you for the
Hi Oliver,
Thank-you for the useful information. Json format would also work instead of XML. Currently, is there a way in the Branching Scenario plugin for Moodle to populate the branching content directly through Json?
Best Regards,
Deepak.
deepak2k
Fri, 03/12/2021 - 02:59
Permalink
Hi Oliver,Thank-you for the
Hi Oliver,
Thank-you for the useful information. Json format would also work instead of XML. Currently, is there a way in the Branching Scenario plugin for Moodle to populate the branching content directly through Json?
Best Regards,
Deepak.
otacke
Fri, 03/12/2021 - 13:50
Permalink
Hi Deepak!Nope. You'd have to
Hi Deepak!
Nope. You'd have to come up with your own solution, e.g. an H5P file builder for new content or some hook that overrided the original parameters in the database.
Best,
Oliver
deepak2k
Fri, 03/12/2021 - 19:27
Permalink
Hi Oliver,Thank-you very much
Hi Oliver,
Thank-you very much for your guidance! We will explore the two options that you pointed out.
Best Regards,
Deepak.