View source: R/question_category_generation.R
generate_xml | R Documentation |
Generate questions xml string
generate_xml(qc)
## S3 method for class 'question_category'
generate_xml(qc)
qc |
A |
A string.
Other question definition functions:
define_extended_question()
,
define_question()
,
define_questions_from_csv()
,
define_questions_from_data_frame()
,
define_questions_from_excel()
,
generate_xml_file()
,
question_category()
qc <- question_category(category = 'Initial test') |>
define_question(
question = 'What are the basic arithmetic operations?',
answer = 'Addition, subtraction, multiplication and division.',
a_1 = 'Addition and subtraction.',
a_2 = 'Addition, subtraction, multiplication, division and square root.'
)
xml <- qc |>
generate_xml()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.