Totara Learn Open Discussions

Question Bank XML import

 
WarthRyan
Question Bank XML import
WarthRyan 发表于 2025年09月18日 Thursday 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
Eves (Totara Support)Craig 发表于 2025年09月18日 Thursday 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