Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/qtispec4.2.xml
<questestinterop>
  <qticomment>
    This example consists of one Sections.
  </qticomment>
  <section title="European Capitals" ident="IMS_V01_S_Example201">
    <objectives view="Candidate">
      <flow_mat>
        <material>
          <mattext>To assess 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>
    <presentation_material>
      <flow_mat>
        <material>
          <mattext>Attempt all questions.</mattext>
        </material>
      </flow_mat>
    </presentation_material>
    <reference>
      <mattext label="CorrectFeedback">Correct answer.</mattext>
    </reference>
    <item title="Capital of France" ident="I01" maxattempts="6">
      <qticomment>
        This Item is also available in the accompanying example files.
      </qticomment>
      <itemmetadata/>
      <rubric view="Candidate">
        <flow_mat>
          <material>
            <mattext>Choose only one of the choices available.</mattext>
          </material>
        </flow_mat>
      </rubric>
      <presentation label="Resp001">
        <flow>
          <material>
            <mattext>What is the Capital of France ?</mattext>
          </material>
          <response_lid ident="LID01">
            <render_choice shuffle="Yes" minnumber="0" maxnumber="1">
              <flow_label>
                <response_label ident="LID01_A">
                  <material><mattext>London</mattext></material>
                </response_label>
              </flow_label>


              <flow_label>
                <response_label ident="LID01_B">
                  <material><mattext>Paris</mattext></material>
                </response_label>
              </flow_label>
              <flow_label>
                <response_label ident="LID01_C">
                  <material><mattext>Washington</mattext></material>
                </response_label>
              </flow_label>
              <flow_label>
                <response_label ident="LID01_D" rshuffle="No">
                  <material><mattext>Berlin</mattext></material>
                </response_label>
              </flow_label>
            </render_choice>
          </response_lid>
        </flow>
      </presentation>
      <resprocessing>
        <qticomment/>
        <outcomes>
          <decvar vartype="Integer" defaultval="0" minvalue="0" maxvalue="10"/>
        </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>
            <matref label="CorrectFeedback"/>
          </material>
        </flow_mat>
      </itemfeedback>
      <itemfeedback ident="I01_IFBK02">
        <solution>
          <solutionmaterial>
            <flow_mat>
              <material>
                <mattext>
                  London is the Capital of England.
                  Paris is the Capital of France.
                  Washington is in the USA.
                  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>
</questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP