Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/qtispec4.1.xml
<questestinterop>
  <qticomment>
    This example consists of two Items.
  </qticomment>
  <item title="Capital of France" ident="I01" maxattempts="6">
    <qticomment>
      This Item is also available in the accompanying example files.
    </qticomment>
    <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">
            <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>
          <mattext>Correct answer.</mattext>
        </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>
</questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP