Totara Learn Open Discussions

Question Bank XML import

 
Ryan Warth
Question Bank XML import
על ידי Ryan Warth בתאריך 18/09/2025, 14:19
 

I have a large file (Totara XML format) that contains all of the questions to be imported. However, I want to import these questions into their appropriate category.

I'm seeing that there exists a certain syntax for this purpose, however, it's not clear whether this syntax applies to the entire file as a whole, or if they syntax can be used per question.

Here is the syntax:

<!-- question: 0  -->

  <question type="category">

    <category>

        <text>$course$/{Course Name}</text>

    </category>

  </question>

Can the above syntax be used in more than one place within the same XML file? We have thousands of questions and this will take forever to manually sort them by category by point-and-click through the UI.


Thanks in advance.

Craig Eves
Re: Question Bank XML import
על ידי Craig Eves (Totara Support) בתאריך 18/09/2025, 19:22
 

Hi Ryan

Can the above syntax be used in more than one place within the same XML file? yes the category element and other attributes can be used in multiple places in same document.

When this is imported the category names are also imported and can Managed through the Question bank > Categories interface under Quiz administration

Regards