Moodle Quiz MOD Element Example

<MOD>
        <ID>41</ID>
        <MODTYPE>quiz</MODTYPE>
        <NAME>End Of Session Survey</NAME>
        <INTRO>
Please take this short survey.
</INTRO>
        <TIMEOPEN>1189826100</TIMEOPEN>
        <TIMECLOSE>1191208500</TIMECLOSE>
        <OPTIONFLAGS>1</OPTIONFLAGS>
        <PENALTYSCHEME>0</PENALTYSCHEME>
        <ATTEMPTS_NUMBER>0</ATTEMPTS_NUMBER>
        <ATTEMPTONLAST>0</ATTEMPTONLAST>
        <GRADEMETHOD>1</GRADEMETHOD>
        <DECIMALPOINTS>2</DECIMALPOINTS>
        <REVIEW>0</REVIEW>
        <QUESTIONSPERPAGE>0</QUESTIONSPERPAGE>
        <SHUFFLEQUESTIONS>0</SHUFFLEQUESTIONS>
        <SHUFFLEANSWERS>0</SHUFFLEANSWERS>
        <QUESTIONS>304,305,306,307,308,309,0</QUESTIONS>
        <SUMGRADES>6</SUMGRADES>
        <GRADE>10</GRADE>
        <TIMECREATED>0</TIMECREATED>
        <TIMEMODIFIED>1191175807</TIMEMODIFIED>
        <TIMELIMIT>0</TIMELIMIT>
        <PASSWORD></PASSWORD>
        <SUBNET></SUBNET>
        <POPUP>0</POPUP>
        <QUESTION_INSTANCES>
          <QUESTION_INSTANCE>
            <ID>275</ID>
            <QUESTION>304</QUESTION>
            <GRADE>1</GRADE>
          </QUESTION_INSTANCE> 
          <QUESTION_INSTANCE>
            <ID>276</ID>
            <QUESTION>305</QUESTION>
            <GRADE>1</GRADE>
          </QUESTION_INSTANCE> <!-- Other sibling QUESTION_INSTANCE elements elided -->
        </QUESTION_INSTANCES>
        <GRADES>
          <GRADE>
            <ID>260</ID>
            <USERID>663181</USERID>
            <GRADEVAL>0</GRADEVAL>
            <TIMEMODIFIED>1190993500</TIMEMODIFIED>
          </GRADE> <!-- Other sibling GRADE elements elided -->
        </GRADES>
        <ATTEMPTS> 
          <ATTEMPT>  <!-- Seems to describe details of user's quiz responses. -->
            <ID>425</ID>
            <USERID>663181</USERID>
            <ATTEMPTNUM>1</ATTEMPTNUM>
            <SUMGRADES>0</SUMGRADES>
            <TIMESTART>1190082335</TIMESTART>
            <TIMEFINISH>1190993500</TIMEFINISH>
            <TIMEMODIFIED>1190993500</TIMEMODIFIED>
            <LAYOUT>304,305,306,307,308,309,0</LAYOUT> <!-- Presumably the question ordering -->
            <PREVIEW>0</PREVIEW>
            <STATES>
              <STATE> <!-- Presumably per-question response details for this attempt -->
                <ID>9445</ID>
                <QUESTION>304</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>0</SEQ_NUMBER>
                <ANSWER>1049,1050,1051,1052:</ANSWER>
                <TIMESTAMP>1190082335</TIMESTAMP>
                <EVENT>0</EVENT>
                <GRADE></GRADE>
                <RAW_GRADE></RAW_GRADE>
                <PENALTY></PENALTY>
              </STATE>
              <STATE>
                <ID>9446</ID>
                <QUESTION>305</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>0</SEQ_NUMBER>
                <ANSWER>1053,1054,1055,1056,1057:</ANSWER>
                <TIMESTAMP>1190082335</TIMESTAMP>
                <EVENT>0</EVENT>
                <GRADE></GRADE>
                <RAW_GRADE></RAW_GRADE>
                <PENALTY></PENALTY>
              </STATE>
              <STATE>
                <ID>9447</ID>
                <QUESTION>306</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>0</SEQ_NUMBER>
                <ANSWER>1058,1059,1060,1061:</ANSWER>
                <TIMESTAMP>1190082335</TIMESTAMP>
                <EVENT>0</EVENT>
                <GRADE></GRADE>
                <RAW_GRADE></RAW_GRADE>
                <PENALTY></PENALTY>
              </STATE>
              <STATE>
                <ID>9448</ID>
                <QUESTION>307</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>0</SEQ_NUMBER>
                <ANSWER>1062,1063,1064,1065,1066:</ANSWER>
                <TIMESTAMP>1190082335</TIMESTAMP>
                <EVENT>0</EVENT>
                <GRADE></GRADE>
                <RAW_GRADE></RAW_GRADE>
                <PENALTY></PENALTY>
              </STATE>
              <STATE>
                <ID>9449</ID>
                <QUESTION>308</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>0</SEQ_NUMBER>
                <ANSWER></ANSWER>
                <TIMESTAMP>1190082335</TIMESTAMP>
                <EVENT>0</EVENT>
                <GRADE></GRADE>
                <RAW_GRADE></RAW_GRADE>
                <PENALTY></PENALTY>
              </STATE>
              <STATE>
                <ID>9450</ID>
                <QUESTION>309</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>0</SEQ_NUMBER>
                <ANSWER></ANSWER>
                <TIMESTAMP>1190082335</TIMESTAMP>
                <EVENT>0</EVENT>
                <GRADE></GRADE>
                <RAW_GRADE></RAW_GRADE>
                <PENALTY></PENALTY>
              </STATE>
              <STATE>
                <ID>10461</ID>
                <QUESTION>304</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>1</SEQ_NUMBER>
                <ANSWER>1049,1050,1051,1052:1050</ANSWER>
                <TIMESTAMP>1190993500</TIMESTAMP>
                <EVENT>6</EVENT>
                <GRADE>0</GRADE>
                <RAW_GRADE>0</RAW_GRADE>
                <PENALTY>0.1</PENALTY>
              </STATE>
              <STATE>
                <ID>10462</ID>
                <QUESTION>305</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>1</SEQ_NUMBER>
                <ANSWER>1053,1054,1055,1056,1057:1056</ANSWER>
                <TIMESTAMP>1190993500</TIMESTAMP>
                <EVENT>6</EVENT>
                <GRADE>0</GRADE>
                <RAW_GRADE>0</RAW_GRADE>
                <PENALTY>0.1</PENALTY>
              </STATE>
              <STATE>
                <ID>10463</ID>
                <QUESTION>306</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>1</SEQ_NUMBER>
                <ANSWER>1058,1059,1060,1061:1061</ANSWER>
                <TIMESTAMP>1190993500</TIMESTAMP>
                <EVENT>6</EVENT>
                <GRADE>0</GRADE>
                <RAW_GRADE>0</RAW_GRADE>
                <PENALTY>0.1</PENALTY>
              </STATE>
              <STATE>
                <ID>10464</ID>
                <QUESTION>307</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>1</SEQ_NUMBER>
                <ANSWER>1062,1063,1064,1065,1066:1066</ANSWER>
                <TIMESTAMP>1190993500</TIMESTAMP>
                <EVENT>6</EVENT>
                <GRADE>0</GRADE>
                <RAW_GRADE>0</RAW_GRADE>
                <PENALTY>0.1</PENALTY>
              </STATE>
              <STATE>
                <ID>10465</ID>
                <QUESTION>308</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>1</SEQ_NUMBER>
                <ANSWER>on how to change a lesson to transforming</ANSWER>
                <TIMESTAMP>1190993500</TIMESTAMP>
                <EVENT>6</EVENT>
                <GRADE>0</GRADE>
                <RAW_GRADE>0</RAW_GRADE>
                <PENALTY>0.1</PENALTY>
              </STATE>
              <STATE>
                <ID>10466</ID>
                <QUESTION>309</QUESTION>
                <ORIGINALQUESTION>0</ORIGINALQUESTION>
                <SEQ_NUMBER>1</SEQ_NUMBER>
                <ANSWER>I dunno</ANSWER>
                <TIMESTAMP>1190993500</TIMESTAMP>
                <EVENT>6</EVENT>
                <GRADE>0</GRADE>
                <RAW_GRADE>0</RAW_GRADE>
                <PENALTY>0.1</PENALTY>
              </STATE>
            </STATES>
            <NEWEST_STATES> <!-- Presumably some sort of optimization -->
              <NEWEST_STATE>
                <ID>3402</ID>
                <QUESTIONID>304</QUESTIONID>
                <NEWEST>10461</NEWEST>
                <NEWGRADED>10461</NEWGRADED>
                <SUMPENALTY>0.0</SUMPENALTY>
              </NEWEST_STATE>
              <NEWEST_STATE>
                <ID>3403</ID>
                <QUESTIONID>305</QUESTIONID>
                <NEWEST>10462</NEWEST>
                <NEWGRADED>10462</NEWGRADED>
                <SUMPENALTY>0.0</SUMPENALTY>
              </NEWEST_STATE>
              <NEWEST_STATE>
                <ID>3404</ID>
                <QUESTIONID>306</QUESTIONID>
                <NEWEST>10463</NEWEST>
                <NEWGRADED>10463</NEWGRADED>
                <SUMPENALTY>0.0</SUMPENALTY>
              </NEWEST_STATE>
              <NEWEST_STATE>
                <ID>3405</ID>
                <QUESTIONID>307</QUESTIONID>
                <NEWEST>10464</NEWEST>
                <NEWGRADED>10464</NEWGRADED>
                <SUMPENALTY>0.0</SUMPENALTY>
              </NEWEST_STATE>
              <NEWEST_STATE>
                <ID>3406</ID>
                <QUESTIONID>308</QUESTIONID>
                <NEWEST>10465</NEWEST>
                <NEWGRADED>10465</NEWGRADED>
                <SUMPENALTY>0.0</SUMPENALTY>
              </NEWEST_STATE>
              <NEWEST_STATE>
                <ID>3407</ID>
                <QUESTIONID>309</QUESTIONID>
                <NEWEST>10466</NEWEST>
                <NEWGRADED>10466</NEWGRADED>
                <SUMPENALTY>0.0</SUMPENALTY>
              </NEWEST_STATE>
            </NEWEST_STATES>
          </ATTEMPT> <!-- Sibling ATTEMPT elements elided -->
          
        </ATTEMPTS>
      </MOD>