Internal XML Representation
What is the structure of the XML string used for representing the questionnaire?
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
idwhen using the
designtab the identifier will be automatically assigned such that each identifier starts with agand groups are numbered incrementally - attribute
scalenumber 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
legendexplanations of all options that can be selected as answers
- element
option*there must be 1
optiontag for each option- content: explanation of option
- attribute
valuenumber of option (
1toscale)
- element
- element
question*- attribute
idwhen using the
designtab the identifier will be automatically assigned such that each identifier starts with aqand questions are numbered incrementally among all groups (questions in different groups still can not have the same id) - element
text- content: the question text
- attribute
- attribute
- element
The XML hierarchy for storing submitted forms is structured as follows:
- element
answers- element
form*one for each filled questionnaire
- attribute
idusername or ticket used to fill out the questionnaire
- element
question*- content: number of selected answer to this question
- attribute
idid of question (same as in master form)
- element
comment- content: the text which the person has written as comment when filling out
- attribute
- element
