Branching Scenario - ability to save/load the branching scenario tree in an XML file

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: 
0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
otacke's picture

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 

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.

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.

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's picture

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

Hi Oliver,

Thank-you very much for your guidance! We will explore the two options that you pointed out.

Best Regards,

Deepak.