Location: PHPKode > projects > Ps and Qs: Processing QTI using PHP > qti-eb/qtifiles/toia-out-1-subsec.xml
<questestinterop>
  <assessment ident="72B155E1-8377-402E-A515-A01881BA3BEC">
    <section title="Dan's first TOIA assessment" ident="AMS_26">
      <outcomes_processing scoremodel="SumofScores">
        <outcomes>
          <decvar defaultval="0" varname="COUNT" vartype="Integer" minvalue="0" maxvalue="110" cutvalue="5">
          </decvar>
        </outcomes>
      </outcomes_processing>
      <qticomment>This is a multiple-choice static question</qticomment>
      <item ident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970" label="see good qs?" title="Multiple Choice Static">
        <itemmetadata>
          <qmd_itemtype>Multiple Choice Static</qmd_itemtype>
          <qmd_maximumscore>1</qmd_maximumscore>
          <qmd_minimumscore>0</qmd_minimumscore>
          <qmd_status>Normal</qmd_status>
          <qmd_levelofdifficulty>Easy</qmd_levelofdifficulty>
          <qmd_weighting>1.00</qmd_weighting>
          <qmd_toolvendor>Excelsoft</qmd_toolvendor>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_weighting</fieldlabel>
              <fieldentry>1.00</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_penaltyvalue</fieldlabel>
              <fieldentry>0.0</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qmd_topic><![CDATA[Animals and stupid stuff]]></qmd_topic>
        </itemmetadata>
        <duration>P0Y0M0DT0H1M0S</duration>
        <presentation label="MultipleChoice">
          <material>
            <mattext texttype="text/html"><![CDATA[Would you like to see some really good questions?]]></mattext>
          </material>
          <response_lid ident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970" rcardinality="Single" rtiming="No">
            <render_choice shuffle="No">
              <response_label ident="1">
                <flow_mat class="Block">
                  <material>
                    <mattext texttype="text/html"><![CDATA[Yes]]></mattext>
                  </material>
                </flow_mat>
              </response_label>
              <response_label ident="2">
                <flow_mat class="Block">
                  <material>
                    <mattext texttype="text/html"><![CDATA[No]]></mattext>
                  </material>
                </flow_mat>
              </response_label>
            </render_choice>
          </response_lid>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar varname="SCORE" vartype="Decimal" defaultval="0" />
          </outcomes>
          <respcondition title="1">
            <conditionvar>
              <varequal respident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970">1</varequal>
            </conditionvar>
            <setvar action="Set" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="1" />
          </respcondition>
          <respcondition title="2">
            <conditionvar>
              <varequal respident="3F98AEB2-31FB-46B7-B9CD-8B9F5BD3B970">2</varequal>
            </conditionvar>
            <setvar action="Set" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="2" />
          </respcondition>
        </resprocessing>
        <itemfeedback ident="1" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[Well OK then! Here we go...]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="2" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[OK then. Boring questions it is.]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="Hints" view="All">
          <hint feedbackstyle="Multilevel">
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
          </hint>
        </itemfeedback>
      </item>
      <qticomment>This is a matrix question</qticomment>
      <item ident="752358AE-4530-4249-82BF-959D97519232" label="number of legs" title="Matrix">
        <itemmetadata>
          <qmd_itemtype>Matrix</qmd_itemtype>
          <qmd_maximumscore>5</qmd_maximumscore>
          <qmd_minimumscore>0</qmd_minimumscore>
          <qmd_status>Normal</qmd_status>
          <qmd_levelofdifficulty>Easy</qmd_levelofdifficulty>
          <qmd_weighting>1.00</qmd_weighting>
          <qmd_toolvendor>Excelsoft</qmd_toolvendor>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_weighting</fieldlabel>
              <fieldentry>1.00</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_penaltyvalue</fieldlabel>
              <fieldentry>0.0</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qmd_topic><![CDATA[Animals and stupid stuff]]></qmd_topic>
        </itemmetadata>
        <duration>P0Y0M0DT0H1M0S</duration>
        <presentation label="Matrix">
          <material>
            <mattext texttype="text/html"><![CDATA[How many legs do the following have:]]></mattext>
          </material>
          <response_lid ident="752358AE-4530-4249-82BF-959D97519232_1" rcardinality="Single">
            <material>
              <mattext texttype="text/html"><![CDATA[Dog]]></mattext>
            </material>
            <render_choice shuffle="No" minnumber="1" maxnumber="1">
              <response_label ident="A">
                <material>
                  <mattext texttype="text/html"><![CDATA[1]]></mattext>
                </material>
              </response_label>
              <response_label ident="B">
                <material>
                  <mattext texttype="text/html"><![CDATA[2]]></mattext>
                </material>
              </response_label>
              <response_label ident="C">
                <material>
                  <mattext texttype="text/html"><![CDATA[3]]></mattext>
                </material>
              </response_label>
              <response_label ident="D">
                <material>
                  <mattext texttype="text/html"><![CDATA[4]]></mattext>
                </material>
              </response_label>
              <response_label ident="E">
                <material>
                  <mattext texttype="text/html"><![CDATA[32]]></mattext>
                </material>
              </response_label>
            </render_choice>
          </response_lid>
          <response_lid ident="752358AE-4530-4249-82BF-959D97519232_2" rcardinality="Single">
            <material>
              <mattext texttype="text/html"><![CDATA[Person]]></mattext>
            </material>
            <render_choice shuffle="No" minnumber="1" maxnumber="1">
              <response_label ident="A">
                <material>
                  <mattext texttype="text/html"><![CDATA[1]]></mattext>
                </material>
              </response_label>
              <response_label ident="B">
                <material>
                  <mattext texttype="text/html"><![CDATA[2]]></mattext>
                </material>
              </response_label>
              <response_label ident="C">
                <material>
                  <mattext texttype="text/html"><![CDATA[3]]></mattext>
                </material>
              </response_label>
              <response_label ident="D">
                <material>
                  <mattext texttype="text/html"><![CDATA[4]]></mattext>
                </material>
              </response_label>
              <response_label ident="E">
                <material>
                  <mattext texttype="text/html"><![CDATA[32]]></mattext>
                </material>
              </response_label>
            </render_choice>
          </response_lid>
          <response_lid ident="752358AE-4530-4249-82BF-959D97519232_3" rcardinality="Single">
            <material>
              <mattext texttype="text/html"><![CDATA[Pig]]></mattext>
            </material>
            <render_choice shuffle="No" minnumber="1" maxnumber="1">
              <response_label ident="A">
                <material>
                  <mattext texttype="text/html"><![CDATA[1]]></mattext>
                </material>
              </response_label>
              <response_label ident="B">
                <material>
                  <mattext texttype="text/html"><![CDATA[2]]></mattext>
                </material>
              </response_label>
              <response_label ident="C">
                <material>
                  <mattext texttype="text/html"><![CDATA[3]]></mattext>
                </material>
              </response_label>
              <response_label ident="D">
                <material>
                  <mattext texttype="text/html"><![CDATA[4]]></mattext>
                </material>
              </response_label>
              <response_label ident="E">
                <material>
                  <mattext texttype="text/html"><![CDATA[32]]></mattext>
                </material>
              </response_label>
            </render_choice>
          </response_lid>
          <response_lid ident="752358AE-4530-4249-82BF-959D97519232_4" rcardinality="Single">
            <material>
              <mattext texttype="text/html"><![CDATA[Three-legged stool]]></mattext>
            </material>
            <render_choice shuffle="No" minnumber="1" maxnumber="1">
              <response_label ident="A">
                <material>
                  <mattext texttype="text/html"><![CDATA[1]]></mattext>
                </material>
              </response_label>
              <response_label ident="B">
                <material>
                  <mattext texttype="text/html"><![CDATA[2]]></mattext>
                </material>
              </response_label>
              <response_label ident="C">
                <material>
                  <mattext texttype="text/html"><![CDATA[3]]></mattext>
                </material>
              </response_label>
              <response_label ident="D">
                <material>
                  <mattext texttype="text/html"><![CDATA[4]]></mattext>
                </material>
              </response_label>
              <response_label ident="E">
                <material>
                  <mattext texttype="text/html"><![CDATA[32]]></mattext>
                </material>
              </response_label>
            </render_choice>
          </response_lid>
          <response_lid ident="752358AE-4530-4249-82BF-959D97519232_5" rcardinality="Single">
            <material>
              <mattext texttype="text/html"><![CDATA[Thirty-two-legged ocelot]]></mattext>
            </material>
            <render_choice shuffle="No" minnumber="1" maxnumber="1">
              <response_label ident="A">
                <material>
                  <mattext texttype="text/html"><![CDATA[1]]></mattext>
                </material>
              </response_label>
              <response_label ident="B">
                <material>
                  <mattext texttype="text/html"><![CDATA[2]]></mattext>
                </material>
              </response_label>
              <response_label ident="C">
                <material>
                  <mattext texttype="text/html"><![CDATA[3]]></mattext>
                </material>
              </response_label>
              <response_label ident="D">
                <material>
                  <mattext texttype="text/html"><![CDATA[4]]></mattext>
                </material>
              </response_label>
              <response_label ident="E">
                <material>
                  <mattext texttype="text/html"><![CDATA[32]]></mattext>
                </material>
              </response_label>
            </render_choice>
          </response_lid>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar varname="SCORE" vartype="Decimal" defaultval="0" />
          </outcomes>
          <respcondition title="0" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_1">A</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="0" />
          </respcondition>
          <respcondition title="1" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_1">B</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="1" />
          </respcondition>
          <respcondition title="2" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_1">C</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="2" />
          </respcondition>
          <respcondition title="3" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_1">D</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="3" />
          </respcondition>
          <respcondition title="4" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_1">E</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="4" />
          </respcondition>
          <respcondition title="5" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_2">A</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="5" />
          </respcondition>
          <respcondition title="6" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_2">B</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="6" />
          </respcondition>
          <respcondition title="7" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_2">C</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="7" />
          </respcondition>
          <respcondition title="8" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_2">D</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="8" />
          </respcondition>
          <respcondition title="9" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_2">E</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="9" />
          </respcondition>
          <respcondition title="10" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_3">A</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="10" />
          </respcondition>
          <respcondition title="11" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_3">B</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="11" />
          </respcondition>
          <respcondition title="12" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_3">C</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="12" />
          </respcondition>
          <respcondition title="13" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_3">D</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="13" />
          </respcondition>
          <respcondition title="14" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_3">E</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="14" />
          </respcondition>
          <respcondition title="15" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_4">A</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="15" />
          </respcondition>
          <respcondition title="16" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_4">B</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="16" />
          </respcondition>
          <respcondition title="17" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_4">C</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="17" />
          </respcondition>
          <respcondition title="18" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_4">D</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="18" />
          </respcondition>
          <respcondition title="19" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_4">E</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="19" />
          </respcondition>
          <respcondition title="20" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_5">A</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="20" />
          </respcondition>
          <respcondition title="21" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_5">B</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="21" />
          </respcondition>
          <respcondition title="22" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_5">C</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="22" />
          </respcondition>
          <respcondition title="23" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_5">D</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="23" />
          </respcondition>
          <respcondition title="24" continue="Yes">
            <conditionvar>
              <varequal respident="752358AE-4530-4249-82BF-959D97519232_5">E</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="24" />
          </respcondition>
        </resprocessing>
        <itemfeedback ident="0" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="1" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="2" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="3" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="4" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="5" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="6" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="7" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="8" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="9" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="10" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="11" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="12" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="13" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="14" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="15" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="16" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="17" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="18" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="19" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="20" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="21" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="22" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="23" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="24" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="Hints" view="All">
          <hint feedbackstyle="Multilevel">
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>Think about the number of _legs_ each of them has....</mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
          </hint>
        </itemfeedback>
      </item>
	</section> <!-- Added by Dan -->
    <section title="Dan's second section" ident="AMS_26_b">
      <qticomment>This is a multiple-choice static question</qticomment>
      <item ident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9" label="duck-is-to" title="Multiple Choice Static">
        <itemmetadata>
          <qmd_itemtype>Multiple Choice Static</qmd_itemtype>
          <qmd_maximumscore>1</qmd_maximumscore>
          <qmd_minimumscore>0</qmd_minimumscore>
          <qmd_status>Normal</qmd_status>
          <qmd_levelofdifficulty>Easy</qmd_levelofdifficulty>
          <qmd_weighting>1.00</qmd_weighting>
          <qmd_toolvendor>Excelsoft</qmd_toolvendor>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_weighting</fieldlabel>
              <fieldentry>1.00</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_penaltyvalue</fieldlabel>
              <fieldentry>0.0</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qmd_topic><![CDATA[UCL]]></qmd_topic>
        </itemmetadata>
        <duration>P0Y0M0DT0H0M20S</duration>
        <presentation label="MultipleChoice">
          <material>
            <mattext texttype="text/html"><![CDATA[<P>If "duck" is to "quack", then "dog" is to...</P>]]></mattext>
          </material>
          <response_lid ident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9" rcardinality="Single" rtiming="No">
            <render_choice shuffle="Yes">
              <response_label ident="1">
                <flow_mat class="Block">
                  <material>
                    <mattext texttype="text/html"><![CDATA["Woof"]]></mattext>
                  </material>
                </flow_mat>
              </response_label>
              <response_label ident="2">
                <flow_mat class="Block">
                  <material>
                    <mattext texttype="text/html"><![CDATA["Quack"]]></mattext>
                  </material>
                </flow_mat>
              </response_label>
              <response_label ident="3">
                <flow_mat class="Block">
                  <material>
                    <mattext texttype="text/html"><![CDATA["Quog"]]></mattext>
                  </material>
                </flow_mat>
              </response_label>
              <response_label ident="4">
                <flow_mat class="Block">
                  <material>
                    <mattext texttype="text/html"><![CDATA["Wamp"]]></mattext>
                  </material>
                </flow_mat>
              </response_label>
            </render_choice>
          </response_lid>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar varname="SCORE" vartype="Decimal" defaultval="0" />
          </outcomes>
          <respcondition title="1">
            <conditionvar>
              <varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">1</varequal>
            </conditionvar>
            <setvar action="Set" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="1" />
          </respcondition>
          <respcondition title="2">
            <conditionvar>
              <varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">2</varequal>
            </conditionvar>
            <setvar action="Set" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="2" />
          </respcondition>
          <respcondition title="3">
            <conditionvar>
              <varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">3</varequal>
            </conditionvar>
            <setvar action="Set" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="3" />
          </respcondition>
          <respcondition title="4">
            <conditionvar>
              <varequal respident="1E32F0D6-9B7E-4705-868D-1071DC49B1D9">4</varequal>
            </conditionvar>
            <setvar action="Set" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="4" />
          </respcondition>
        </resprocessing>
        <itemfeedback ident="1" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="2" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="3" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="4" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="Hints" view="All">
          <hint feedbackstyle="Multilevel">
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>What sound does a dog make?</mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
          </hint>
        </itemfeedback>
      </item>
      <qticomment>This is a Fill in the blanks type question</qticomment>
      <item ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C" label="peter piper" title="Fill in the blanks-static">
        <itemmetadata>
          <qmd_itemtype>Fill In Blanks Static</qmd_itemtype>
          <qmd_maximumscore>3</qmd_maximumscore>
          <qmd_minimumscore>0</qmd_minimumscore>
          <qmd_status>Normal</qmd_status>
          <qmd_levelofdifficulty>Moderate</qmd_levelofdifficulty>
          <qmd_weighting>2.00</qmd_weighting>
          <qmd_toolvendor>Excelsoft</qmd_toolvendor>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_weighting</fieldlabel>
              <fieldentry>2.00</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_penaltyvalue</fieldlabel>
              <fieldentry>0.0</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qmd_topic><![CDATA[Animals and stupid stuff]]></qmd_topic>
        </itemmetadata>
        <duration>P0Y0M0DT0H1M0S</duration>
        <presentation label="FIB">
          <material>
            <mattext texttype="text/html"><![CDATA[Peter Piper picked a peck of pickled pepper. And the peck of pepper Peter Piper picked was ]]></mattext>
          </material>
          <response_str ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_1" rcardinality="Single" rtiming="No">
            <render_fib fibtype="String" prompt="Dashline" maxchars="7">
            </render_fib>
          </response_str>
          <material>
            <mattext texttype="text/html"><![CDATA[. She sells ]]></mattext>
          </material>
          <response_str ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_2" rcardinality="Single" rtiming="No">
            <render_fib fibtype="String" prompt="Dashline" maxchars="10">
            </render_fib>
          </response_str>
          <material>
            <mattext texttype="text/html"><![CDATA[ on the sea shore, and the shells that she sells are sea-shells, I'm ]]></mattext>
          </material>
          <response_str ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_3" rcardinality="Single" rtiming="No">
            <render_fib fibtype="String" prompt="Dashline" maxchars="4">
            </render_fib>
          </response_str>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar varname="SCORE" vartype="Decimal" defaultval="0" />
          </outcomes>
          <qticomment>Yes</qticomment>
          <respcondition>
            <conditionvar>
              <varequal respident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_1" case="No"><![CDATA[pickled]]></varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_1C" />
          </respcondition>
          <respcondition>
            <conditionvar>
              <not>
                <varequal respident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_1" case="No"><![CDATA[pickled]]></varequal>
              </not>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_1W" />
          </respcondition>
          <respcondition>
            <conditionvar>
              <varequal respident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_2" case="No"><![CDATA[sea-shells]]></varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_2C" />
          </respcondition>
          <respcondition>
            <conditionvar>
              <not>
                <varequal respident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_2" case="No"><![CDATA[sea-shells]]></varequal>
              </not>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_2W" />
          </respcondition>
          <respcondition>
            <conditionvar>
              <varequal respident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_3" case="No"><![CDATA[sure]]></varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_3C" />
          </respcondition>
          <respcondition>
            <conditionvar>
              <not>
                <varequal respident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_3" case="No"><![CDATA[sure]]></varequal>
              </not>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_3W" />
          </respcondition>
        </resprocessing>
        <itemfeedback ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_1C" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_1W" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_2C" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_2W" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_3C" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="45DD8ADA-5832-42D1-A4C7-2F34F8E2C17C_3W" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="Hints" view="All">
          <hint feedbackstyle="Multilevel">
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
          </hint>
        </itemfeedback>
      </item>
      <qticomment>This is an Essay question</qticomment>
      <item ident="07922F40-FC09-41AC-9524-53CED5C511FC" label="imsqti lipservice essay" title="Essay">
        <itemmetadata>
          <qmd_itemtype>Essay</qmd_itemtype>
          <qmd_maximumscore>100</qmd_maximumscore>
          <qmd_minimumscore>0</qmd_minimumscore>
          <qmd_status>Normal</qmd_status>
          <qmd_levelofdifficulty>Difficult</qmd_levelofdifficulty>
          <qmd_weighting>3.00</qmd_weighting>
          <qmd_toolvendor>Excelsoft</qmd_toolvendor>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_weighting</fieldlabel>
              <fieldentry>3.00</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_penaltyvalue</fieldlabel>
              <fieldentry>0.0</fieldentry>
            </qtimetadatafield>
          </qtimetadata>
          <qmd_topic><![CDATA[Animals and stupid stuff]]></qmd_topic>
        </itemmetadata>
        <duration>P0Y0M0DT0H10M0S</duration>
        <presentation label="ESSAY">
          <qticomment>Attachment:No</qticomment>
          <material>
            <mattext texttype="text/html"><![CDATA[<P>"Some initiative is needed to ensure that designers of assessment systems do more than just pay lip-service to standards such as IMS QTI." Discuss. (500 words.)</P>]]></mattext>
          </material>
          <response_str ident="07922F40-FC09-41AC-9524-53CED5C511FC" rcardinality="Ordered" rtiming="No">
            <render_fib fibtype="String" prompt="Box" rows="20" columns="60" maxchars="5000" minnumber="1" maxnumber="1">
              <response_label ident="1" />
            </render_fib>
          </response_str>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar varname="SCORE" vartype="Decimal" defaultval="0" />
          </outcomes>
          <respcondition>
            <setvar action="Add" varname="SCORE">100</setvar>
          </respcondition>
        </resprocessing>
        <itemfeedback ident="07922F40-FC09-41AC-9524-53CED5C511FC_1" view="All">
          <flow_mat>
            <material>
              <mattext texttype="text/html"><![CDATA[Thank you for writing this. I will read it with vim and vigour.]]></mattext>
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="Hints" view="All">
          <hint feedbackstyle="Multilevel">
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
            <hintmaterial>
              <flow_mat>
                <material>
                  <mattext>
                  </mattext>
                </material>
              </flow_mat>
            </hintmaterial>
          </hint>
        </itemfeedback>
      </item>
    </section>
  </assessment>
</questestinterop>
Return current item: Ps and Qs: Processing QTI using PHP