Save category description in Moodle XML import/export
From MoodleDocs
What is not saved?
Some things are not saved at this format of import/expor:
1. description of the exported category,
2. description of parent category,
Current XML structure
<question type="category">
<category>
<text>{<Assignment>}/{<Category>}[/<Subcategory>]...</text>
</category>
</question>
Assignment can have one of two values:
- $course$ - сategory refers to the course,
- $system$ - Category refers to the system.
Category and Subcategory - name of category and subcategory written via '/' as path.
Proposed XML structure
<question type="category"> <category> <text>{<Assignment>}/{<Category>}</text> </category> <description> <text>{<Description>}</text> </description> </question>