Schema digiquest-result.xsd


schema location:  C:\work\digiquest\doc\digiquest-result.xsd
 
Elements  Complex types  Simple types 
resultset  header  type 
option 
result 
results 
values 


element resultset
diagram
children header results
annotation
documentation 
answers of one flow of a questionary
source
<xs:element name="resultset">
  <xs:annotation>
    <xs:documentation>answers of one flow of a questionary</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:sequence>
      <xs:element name="header" type="header">
        <xs:annotation>
          <xs:documentation>header informations for the resultset</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="results" type="results">
        <xs:annotation>
          <xs:documentation>all result</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

element resultset/header
diagram
type header
children questionary_id runtime_id
annotation
documentation 
header informations for the resultset
source
<xs:element name="header" type="header">
  <xs:annotation>
    <xs:documentation>header informations for the resultset</xs:documentation>
  </xs:annotation>
</xs:element>

element resultset/results
diagram
type results
children result
annotation
documentation 
all result
source
<xs:element name="results" type="results">
  <xs:annotation>
    <xs:documentation>all result</xs:documentation>
  </xs:annotation>
</xs:element>

complexType header
diagram
children questionary_id runtime_id
used by
element resultset/header
annotation
documentation 
header informations for a resultset
source
<xs:complexType name="header">
  <xs:annotation>
    <xs:documentation>header informations for a resultset</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="questionary_id" type="xs:integer">
      <xs:annotation>
        <xs:documentation>id of the answered questionary</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="runtime_id" type="xs:integer">
      <xs:annotation>
        <xs:documentation>id of the flow</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element header/questionary_id
diagram
type xs:integer
annotation
documentation 
id of the answered questionary
source
<xs:element name="questionary_id" type="xs:integer">
  <xs:annotation>
    <xs:documentation>id of the answered questionary</xs:documentation>
  </xs:annotation>
</xs:element>

element header/runtime_id
diagram
type xs:integer
annotation
documentation 
id of the flow
source
<xs:element name="runtime_id" type="xs:integer">
  <xs:annotation>
    <xs:documentation>id of the flow</xs:documentation>
  </xs:annotation>
</xs:element>

complexType option
diagram
children text value
used by
element values/option
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:integer  required      
annotation
documentation 
answered option to a multiple or single choice question
source
<xs:complexType name="option">
  <xs:annotation>
    <xs:documentation>answered option to a multiple or single choice question</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="text" type="xs:string">
      <xs:annotation>
        <xs:documentation>text of the option</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="value" type="xs:string">
      <xs:annotation>
        <xs:documentation>value of the option</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
  <xs:attribute name="id" type="xs:integer" use="required"/>
</xs:complexType>

element option/text
diagram
type xs:string
annotation
documentation 
text of the option
source
<xs:element name="text" type="xs:string">
  <xs:annotation>
    <xs:documentation>text of the option</xs:documentation>
  </xs:annotation>
</xs:element>

element option/value
diagram
type xs:string
annotation
documentation 
value of the option
source
<xs:element name="value" type="xs:string">
  <xs:annotation>
    <xs:documentation>value of the option</xs:documentation>
  </xs:annotation>
</xs:element>

complexType result
diagram
children question_id result_id type values
used by
element results/result
annotation
documentation 
answer to one question
source
<xs:complexType name="result">
  <xs:annotation>
    <xs:documentation>answer to one question</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="question_id" type="xs:integer">
      <xs:annotation>
        <xs:documentation>id of the answered question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="result_id" type="xs:integer">
      <xs:annotation>
        <xs:documentation>unique id of this result in this resultset</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="type" type="type">
      <xs:annotation>
        <xs:documentation>type of the answered question</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="values" type="values">
      <xs:annotation>
        <xs:documentation>answered values</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element result/question_id
diagram
type xs:integer
annotation
documentation 
id of the answered question
source
<xs:element name="question_id" type="xs:integer">
  <xs:annotation>
    <xs:documentation>id of the answered question</xs:documentation>
  </xs:annotation>
</xs:element>

element result/result_id
diagram
type xs:integer
annotation
documentation 
unique id of this result in this resultset
source
<xs:element name="result_id" type="xs:integer">
  <xs:annotation>
    <xs:documentation>unique id of this result in this resultset</xs:documentation>
  </xs:annotation>
</xs:element>

element result/type
diagram
type type
facets
enumeration informational
enumeration text
enumeration boolean
enumeration singlechoice
enumeration multiplechoice
enumeration date
enumeration integer
annotation
documentation 
type of the answered question
source
<xs:element name="type" type="type">
  <xs:annotation>
    <xs:documentation>type of the answered question</xs:documentation>
  </xs:annotation>
</xs:element>

element result/values
diagram
type values
children skip void boolean string option date integer
annotation
documentation 
answered values
source
<xs:element name="values" type="values">
  <xs:annotation>
    <xs:documentation>answered values</xs:documentation>
  </xs:annotation>
</xs:element>

complexType results
diagram
children result
used by
element resultset/results
annotation
documentation 
all results of one questionary flow
source
<xs:complexType name="results">
  <xs:annotation>
    <xs:documentation>all results of one questionary flow</xs:documentation>
  </xs:annotation>
  <xs:sequence>
    <xs:element name="result" type="result" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>a result for one question</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:sequence>
</xs:complexType>

element results/result
diagram
type result
children question_id result_id type values
annotation
documentation 
a result for one question
source
<xs:element name="result" type="result" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>a result for one question</xs:documentation>
  </xs:annotation>
</xs:element>

complexType values
diagram
children skip void boolean string option date integer
used by
element result/values
annotation
documentation 
answered values
source
<xs:complexType name="values">
  <xs:annotation>
    <xs:documentation>answered values</xs:documentation>
  </xs:annotation>
  <xs:choice>
    <xs:element name="skip">
      <xs:annotation>
        <xs:documentation>the question was skipped</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="void">
      <xs:annotation>
        <xs:documentation>the question has no answer</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="boolean" type="xs:boolean" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>a boolean value</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="string" type="xs:string" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>a string value</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="option" type="option" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>a option of a single- or multiplechoicequestion</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="date" type="xs:date" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>a date value</xs:documentation>
      </xs:annotation>
    </xs:element>
    <xs:element name="integer" type="xs:integer" maxOccurs="unbounded">
      <xs:annotation>
        <xs:documentation>a integer value</xs:documentation>
      </xs:annotation>
    </xs:element>
  </xs:choice>
</xs:complexType>

element values/skip
diagram
annotation
documentation 
the question was skipped
source
<xs:element name="skip">
  <xs:annotation>
    <xs:documentation>the question was skipped</xs:documentation>
  </xs:annotation>
</xs:element>

element values/void
diagram
annotation
documentation 
the question has no answer
source
<xs:element name="void">
  <xs:annotation>
    <xs:documentation>the question has no answer</xs:documentation>
  </xs:annotation>
</xs:element>

element values/boolean
diagram
type xs:boolean
annotation
documentation 
a boolean value
source
<xs:element name="boolean" type="xs:boolean" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>a boolean value</xs:documentation>
  </xs:annotation>
</xs:element>

element values/string
diagram
type xs:string
annotation
documentation 
a string value
source
<xs:element name="string" type="xs:string" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>a string value</xs:documentation>
  </xs:annotation>
</xs:element>

element values/option
diagram
type option
children text value
attributes
Name  Type  Use  Default  Fixed  Annotation
id  xs:integer  required      
annotation
documentation 
a option of a single- or multiplechoicequestion
source
<xs:element name="option" type="option" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>a option of a single- or multiplechoicequestion</xs:documentation>
  </xs:annotation>
</xs:element>

element values/date
diagram
type xs:date
annotation
documentation 
a date value
source
<xs:element name="date" type="xs:date" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>a date value</xs:documentation>
  </xs:annotation>
</xs:element>

element values/integer
diagram
type xs:integer
annotation
documentation 
a integer value
source
<xs:element name="integer" type="xs:integer" maxOccurs="unbounded">
  <xs:annotation>
    <xs:documentation>a integer value</xs:documentation>
  </xs:annotation>
</xs:element>

simpleType type
type restriction of xs:string
used by
element result/type
facets
enumeration informational
enumeration text
enumeration boolean
enumeration singlechoice
enumeration multiplechoice
enumeration date
enumeration integer
annotation
documentation 
type of the question, which is been answered
source
<xs:simpleType name="type">
  <xs:annotation>
    <xs:documentation>type of the question, which is been answered</xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
    <xs:enumeration value="informational"/>
    <xs:enumeration value="text"/>
    <xs:enumeration value="boolean"/>
    <xs:enumeration value="singlechoice"/>
    <xs:enumeration value="multiplechoice"/>
    <xs:enumeration value="date"/>
    <xs:enumeration value="integer"/>
  </xs:restriction>
</xs:simpleType>


XML Schema documentation generated with
XMLSPY Schema Editor http://www.altova.com/xmlspy