-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Peter Petkanic
committed
Jun 14, 2016
1 parent
a312260
commit 0282503
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<!--root element--> | ||
<responses xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="response.xsd"> | ||
<!-- | ||
- element response represents response from respondent | ||
- it must contain survey ID and questions at all times | ||
--> | ||
<response> | ||
<!-- | ||
- this element has the value of survey ID from survey.xml | ||
- only non-negative integer is permitted | ||
--> | ||
<surveyId>1</surveyId> | ||
<!-- | ||
- questions is a set of questions with AT LEAST ONE selected answer | ||
- if there was no selected answer for question it is not present | ||
--> | ||
<questions> | ||
<!-- | ||
- question element represents question with at least one selected answer | ||
- must contain question ID and set of answers | ||
- question ID is unique inside response | ||
--> | ||
<question> | ||
<!-- | ||
- this element has the value of question ID from survey.xml | ||
- only non-negative integer is permitted | ||
--> | ||
<questionId>1</questionId> | ||
<!-- | ||
- answers represents set of selected answers in question | ||
- must contain at least one ID | ||
--> | ||
<answers> | ||
<!-- | ||
- this element has the value of answer ID from survey.xml | ||
- only non-negative integer is permitted | ||
--> | ||
<answerId>1</answerId> | ||
</answers> | ||
</question> | ||
<question> | ||
<questionId>2</questionId> | ||
<answers> | ||
<answerId>1</answerId> | ||
<answerId>3</answerId> | ||
<answerId>4</answerId> | ||
</answers> | ||
</question> | ||
</questions> | ||
</response> | ||
<response> | ||
<surveyId>2</surveyId> | ||
<questions> | ||
<question> | ||
<questionId>1</questionId> | ||
<answers> | ||
<answerId>1</answerId> | ||
</answers> | ||
</question> | ||
<question> | ||
<questionId>2</questionId> | ||
<answers> | ||
<answerId>3</answerId> | ||
</answers> | ||
</question> | ||
</questions> | ||
</response> | ||
</responses> |