Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/qtispec4.3.xml
<questestinterop>
  <assessment title="European Geography" ident="A01">
    <qticomment>A Complex Assessment example.</qticomment>
    <objectives view="Candidate">
      <flow_mat>
        <material>
          <mattext>To test your knowledge of European geography.</mattext>
        </material>
      </flow_mat>
    </objectives>
    <objectives view="Assessor">
      <flow_mat>
        <material>
          <mattext>Tests the candidate's knowledge of European geography.</mattext>
        </material>
      </flow_mat>
    </objectives>
    <rubric view="Candidate">
      <flow_mat>
        <material>
          <mattext>Attempt all questions.</mattext>
        </material>
      </flow_mat>
    </rubric>
    <presentation_material>
      <flow_mat>
        <material>
          <mattext>All of the following questions are about Europe.</mattext>
        </material>

      </flow_mat>


    </presentation_material>
    <section title="European Capitals" ident="S01">
      <objectives view="Candidate">
        <flow_mat>
          <material>
            <mattext>To assess your knowledge of the capital cities in Europe.
            </mattext>
          </material>
        </flow_mat>
      </objectives>
      <objectives view="Tutor">
        <flow_mat>
          <material>
            <mattext>
              To ensure that the student knows the difference between the Capital 
              cities of France, UK, Germany, Spain and Italy.
            </mattext>
          </material>
        </flow_mat>
      </objectives>
      <rubric view="Candidate">
        <flow_mat>
          <material>
            <mattext>Attempt all questions.</mattext>
          </material>
        </flow_mat>
      </rubric>
      <item title="Capital of France" ident="I01" maxattempts="6">
        <rubric view="Candidate">
          <flow_mat>
            <material>
              <mattext>Choose only one of the choices available.</mattext>
            </material>
          </flow_mat>
        </rubric>
        <presentation label="Resp001">
          <flow>
            <response_lid ident="LID01">
              <material>
                <mattext>What is the Capital of France ?</mattext>
              </material>
              <render_choice shuffle="Yes">
                <response_label ident="LID01_A">
                  <flow_mat>
                    <material><mattext>London</mattext></material>
                  </flow_mat>
                </response_label>
                <response_label ident="LID01_B">
                  <flow_mat>
                    <material><mattext>Paris</mattext></material>
                  </flow_mat>
                </response_label>
                <response_label ident="LID01_C">
                  <flow_mat>
                    <material><mattext>Washington</mattext></material>
                  </flow_mat>
                </response_label>
                <response_label ident="LID01_D" rshuffle="No">


                  <flow_mat>
                    <material><mattext>Berlin</mattext></material>
                  </flow_mat>
                </response_label>
              </render_choice>
            </response_lid>
          </flow>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar vartype="Integer" defaultval="0"/>
          </outcomes>
          <respcondition>
            <qticomment>Scoring for the correct answer.</qticomment>
            <conditionvar>
              <varequal respident="LID01">LID01_B</varequal>
            </conditionvar>
            <setvar action="Set" varname="SCORE">10</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="I01_IFBK01"/>
          </respcondition>
        </resprocessing>
        <itemfeedback title="Correct answer" ident="I01_IFBK01">
          <flow_mat>
            <material><mattext>Correct answer.</mattext></material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="I01_IFBK02">
          <solution>
            <solutionmaterial>
              <flow_mat>
                <material>
                  <mattext>London is the Capital of England.</mattext>
                </material>
              </flow_mat>
              <flow_mat>
                <material>
                  <mattext>Paris is the Capital of France.</mattext>
                </material>
              </flow_mat>
              <flow_mat>
                <material>
                  <mattext>Washington is in the USA.</mattext>
                </material>
              </flow_mat>
              <flow_mat>
                <material>
                  <mattext>Berlin is the Capital of Germany.</mattext>
                </material>
              </flow_mat>
            </solutionmaterial>
          </solution>
        </itemfeedback>
        <itemfeedback ident="I01_IFBK03" view="All">
          <hint feedbackstyle="Multilevel">
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>One of the choices is not in Europe.</mattext>
                </material>


              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>Berlin is the Capital of Germany.</mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>The Eiffel tower is in the Capital of France.
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
          </hint>
        </itemfeedback>
      </item>
    </section>
    <section title="European Rivers" ident="SO2">
      <objectives view="Candidate">
        <flow_mat>
          <material>
            <mattext>To assess your knowledge of the rivers in Europe.</mattext>
          </material>
        </flow_mat>
      </objectives>
      <objectives view="Assessor">
        <flow_mat>
          <material>
            <mattext>Questions on rivers in Germany, Spain, Italy and France.
            </mattext>
          </material>
        </flow_mat>
      </objectives>
      <item title="Rivers in France question" ident="I02">
        <rubric view="Candidate">
          <flow_mat>
            <material>
              <mattext>Choose all of the correct answers.</mattext>
            </material>
          </flow_mat>
        </rubric>
        <presentation label="Resp002">
          <flow>
            <material>
              <mattext>Which rivers are in France ?</mattext>
            </material>
            <response_lid ident="LID02" rcardinality="Multiple">
              <render_choice shuffle="Yes" minnumber="1" maxnumber="2">
                <response_label ident="LID02_A">
                  <flow_mat>
                    <material><mattext>Seine</mattext></material>
                  </flow_mat>
                </response_label>
                <response_label ident="LID02_B">
                  <flow_mat>


                    <material><mattext>Thames</mattext></material>
                  </flow_mat>
                </response_label>
                <response_label ident="LID02_C">
                  <flow_mat>
                    <material><mattext>Danube</mattext></material>
                  </flow_mat>
                </response_label>
                <response_label ident="LID02_D">
                  <flow_mat>
                    <material><mattext>Loire</mattext></material>
                  </flow_mat>
                </response_label>
              </render_choice>
            </response_lid>
          </flow>
        </presentation>
      </item>
      <item title="Rivers in Germany" ident="I03">
        <rubric view="Candidate">
          <flow_mat>
            <material>
              <mattext>Choose all of the correct answers.</mattext>
            </material>
          </flow_mat>
        </rubric>
        <presentation label="Resp003">
          <flow>
            <material>
              <matimage imagtytpe="image/gif" uri="rivers.gif"></matimage>
              <mattext>Which rivers are in Germany ?</mattext>
            </material>
            <response_lid ident="LID03" rcardinality="Multiple">
              <render_hotspot x0="500" y0="500" height="200">
                <response_label ident="LID03_A" rarea="Ellipse">10,10,2,2
                </response_label>
              <response_label ident="LID03_B" rarea="Ellipse">15,15,2,2
              </response_label>
              <response_label ident="LID03_C" rarea="Ellipse">30,30,2,2
              </response_label>
              <response_label ident="LID03_D" rarea="Ellipse">60,60,2,2
              </response_label>
              <response_label ident="LID03_E" rarea="Ellipse">70,70,2,2
                </response_label>
              </render_hotspot>
            </response_lid>
          </flow>
        </presentation>
      </item>
    </section>
  </assessment>
</questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP