newest revision of XML Schema

Below is the nth revision (we aren’t sure anymore, since we’ve made a lot of revisions, a lot of them due to careless errors on our part) of our XML Schema, which we had validated here.

The developer will be provided with the Game ID upon approval of game submission and will have to indicate in his submission which data will be included in the game’s XML submissions. If the developer would like to keep track of the performance of the students per level, the game will have to submit an XML file per level.

========================


<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="WSG_EDUGAME">
<xs:complexType>
<xs:sequence>
<xs:element name="GAME_ID" type="xs:string" minOccurs="1" maxOccurs="1"/><!--game ID from registering at the portal-->
<xs:element name="VERSION" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="PLAYERINFO" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="USERNAME" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="NAME" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>

<xs:element name="TEACHER_USERNAME" type="xs:string" minOccurs="1" maxOccurs="1"/>

<xs:element name="ASSESSMENT" minOccurs="1" maxOccurs="1" >
<xs:complexType>
<xs:sequence>
<xs:element name="GAME_INFO" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="DATE_PLAYED" type="xs:date" minOccurs="1" maxOccurs="1"/>
<xs:element name="TIME" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="TOTAL_GAME_TIME" type="xs:time" minOccurs="0" maxOccurs="1"/>
<xs:element name="START_TIME" type="xs:time" minOccurs="0" maxOccurs="1"/> <!--hh:mm:ss-->
<xs:element name="END_TIME" type="xs:time" minOccurs="0" maxOccurs="1"/>
<xs:element name="AVERAGE_TIME_PER_LEVEL" type="xs:time" minOccurs="0" maxOccurs="1"/>
<xs:element name="AVERAGE_TIME_PER_QUESTION" type="xs:time" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="LEVEL" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="CATEGORY" minOccurs="0" maxOccurs="1"></xs:element>
<xs:element name="TOTAL_GAME_SCORE" type="xs:int" minOccurs="1" maxOccurs="1"/>
<xs:element name="NO_OF_CORRECT_ITEMS" type="xs:int" minOccurs="0" maxOccurs="1"/>
<xs:element name="NO_OF_INCORRECT_ITEMS" type="xs:int" minOccurs="0" maxOccurs="1"/>
<xs:element name="TOTAL_NO_OF_ITEMS" type="xs:int" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="GAME_DATA" minOccurs="0" maxOccurs="1"> <!-- for questionnaire type games only -->
<xs:complexType>
<xs:sequence>
<xs:element name="QUESTION_DETAIL" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="QUESTION" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="ANSWER" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="RESULT" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="CORRECT"/>
<xs:enumeration value="INCORRECT"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TOTAL_TIME_ANSWERED" type="xs:time" minOccurs="0"/>
<xs:element name="NUMBER_OF_TRIES" type="xs:int" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

</xs:sequence> <!--end assessment-->
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

 

</xs:schema>

Advertisement
Both comments and trackbacks are currently closed.
Follow

Get every new post delivered to your Inbox.