Skip to contents

Generate questions xml string

Usage

generate_xml(qc)

# S3 method for question_category
generate_xml(qc)

Arguments

qc

A question_category object.

Value

A string.

Examples


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()