Internal XML Representation

What is the structure of the XML string used for representing the questionnaire?

« Back to Table of Contents

The XML hierarchy for the empty questionnaire form is structured as follows (the elements marked with an asterisk can be repeated, for example a questionnaire may contain more than one group):

  • element questionnaire
    • element group *
      • attribute id

        when using the design tab the identifier will be automatically assigned such that each identifier starts with a g and groups are numbered incrementally

      • attribute scale

        number of possible answers to the questions in this group, lower limit is always 1

      • element title
        • content: group title
      • element description
        • content: group description
      • element legend

        explanations of all options that can be selected as answers

        • element option *

          there must be 1 option tag for each option

          • content: explanation of option
          • attribute value

            number of option (1 to scale)

      • element question *
        • attribute id

          when using the design tab the identifier will be automatically assigned such that each identifier starts with a q and questions are numbered incrementally among all groups (questions in different groups still can not have the same id)

        • element text
          • content: the question text

The XML hierarchy for storing submitted forms is structured as follows:

  • element answers
    • element form *

      one for each filled questionnaire

      • attribute id

        username or ticket used to fill out the questionnaire

      • element question *
        • content: number of selected answer to this question
        • attribute id

          id of question (same as in master form)

      • element comment
        • content: the text which the person has written as comment when filling out