Created
September 30, 2014 09:38
-
-
Save labra/a7e199494fd5af01c059 to your computer and use it in GitHub Desktop.
Schema for QuizSimple
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="quiz" > | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="question" type="question" maxOccurs="unbounded"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:complexType name="question"> | |
<xs:sequence> | |
<xs:element name="name" type="name" /> | |
<xs:element name="questiontext" type="questiontext" /> | |
<xs:element name="answer" type="answer" maxOccurs="unbounded" /> | |
</xs:sequence> | |
<xs:attribute name="type" type="xs:string" /> | |
</xs:complexType> | |
<xs:complexType name="name"> | |
<xs:sequence> | |
<xs:element name="text" type="xs:string" /> | |
</xs:sequence> | |
<xs:attribute name="format" type="xs:string" /> | |
</xs:complexType> | |
<xs:complexType name="questiontext"> | |
<xs:sequence> | |
<xs:element name="text" type="xs:string" /> | |
</xs:sequence> | |
<xs:attribute name="format" type="xs:string" /> | |
</xs:complexType> | |
<xs:complexType name="answer"> | |
<xs:sequence> | |
<xs:element name="text" type="xs:string" /> | |
<xs:element name="feedback" type="feedback" /> | |
</xs:sequence> | |
<xs:attribute name="format" type="xs:string" /> | |
<xs:attribute name="fraction" type="xs:string" /> | |
</xs:complexType> | |
<xs:complexType name="feedback"> | |
<xs:sequence> | |
<xs:element name="text" type="xs:string" /> | |
</xs:sequence> | |
<xs:attribute name="format" type="xs:string" /> | |
</xs:complexType> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment