Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Petkanic committed Jun 14, 2016
1 parent a312260 commit 0282503
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions src/xml/valid/response/response_valid_responses.xml
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>

0 comments on commit 0282503

Please sign in to comment.