Sample Survey XML


This is a sample XML definition of a survey created using ZSURVEY Survey Engine.


<survey version="1.2">
  <meta>
    <id>sample</id>
    <title>Sample Survey</title>
    <description>This is a sample survey description.</description>
    <endtitle>Thank You</endtitle>
    <enddescription>Thank you for taking this survey</enddescription>
    <startdate>01/01/0001</startdate>
    <enddate>12/31/9999</enddate>
    <quote>2000</quote>
    <progressbar>true</progressbar>
  </meta>
  <pages>
    <page id="1" title="Start Page" description="This is a sample start page" />
  </pages>
  <questions>
    <question id="1" type="singlechoice" page="1">
      <body>What is your gender?</body>
      <remarks>
      </remarks>
      <footer>
      </footer>
      <mandatory>true</mandatory>
      <otherenabled>false</otherenabled>
      <randomized>false</randomized>
      <dropdownlist>false</dropdownlist>
      <horizontal>false</horizontal>
      <choices>
        <choice>Male</choice>
        <choice>Female</choice>
      </choices>
    </question>
    <question id="2" type="multichoice" page="1">
      <body>What is your favorite choice?</body>
      <remarks>New Question Remarks</remarks>
      <footer>New Question Footer</footer>
      <mandatory>true</mandatory>
      <otherenabled>false</otherenabled>
      <randomized>false</randomized>
      <columns>1</columns>
      <maxchoices>0</maxchoices>
      <choices>
        <choice>Option 1</choice>
        <choice>Option 2</choice>
      </choices>
    </question>
  </questions>
</survey>

See Also