x

Desc: Name

Popup text

XML Schema Documentation

Table of Contents

top

Schema Document Properties

Target Namespace http://ProjectMalmo.microsoft.com
Version 0.30
Element and Attribute Namespaces
  • Global element and attribute declarations belong to this schema's target namespace.
  • By default, local element declarations belong to this schema's target namespace.
  • By default, local attribute declarations have no namespace.
Schema Composition

Declared Namespaces

Prefix Namespace
Default namespace http://ProjectMalmo.microsoft.com
xml http://www.w3.org/XML/1998/namespace
jaxb http://java.sun.com/xml/ns/jaxb
xs http://www.w3.org/2001/XMLSchema
Schema Component Representation
<xs:schema targetNamespace="http://ProjectMalmo.microsoft.com" elementFormDefault="qualified" version="2.1" version="0.30">
<xs:include schemaLocation="Types.xsd"/>
<xs:include schemaLocation="MissionHandlers.xsd"/>
...
</xs:schema>
top

Global Declarations

Element: About

Name About
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<About>
<Summary> xs:string </Summary> [1]
<Description> xs:string </Description> [0..1]
</About>
Schema Component Representation
<xs:element name="About">
<xs:complexType>
<xs:sequence>
<xs:element name="Summary" type="xs:string"/>
<xs:element name="Description" type="xs:string" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: AgentHandlers

Name AgentHandlers
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<AgentHandlers>
Start All [1]
<ObservationFromRecentCommands> ... </ObservationFromRecentCommands> [0..1]
<ObservationFromHotBar> ... </ObservationFromHotBar> [0..1]
<ObservationFromFullStats> ... </ObservationFromFullStats> [0..1]
<ObservationFromFullInventory> ... </ObservationFromFullInventory> [0..1]
<ObservationFromSubgoalPositionList> ... </ObservationFromSubgoalPositionList> [0..1]
<ObservationFromGrid> ... </ObservationFromGrid> [0..1]
<ObservationFromDistance> ... </ObservationFromDistance> [0..1]
<ObservationFromDiscreteCell> ... </ObservationFromDiscreteCell> [0..1]
<ObservationFromChat> ... </ObservationFromChat> [0..1]
<ObservationFromNearbyEntities> ... </ObservationFromNearbyEntities> [0..1]
<ObservationFromRay> ... </ObservationFromRay> [0..1]
<ObservationFromTurnScheduler> ... </ObservationFromTurnScheduler> [0..1]
<VideoProducer> ... </VideoProducer> [0..1]
<RewardForTouchingBlockType> ... </RewardForTouchingBlockType> [0..1]
<RewardForSendingCommand> ... </RewardForSendingCommand> [0..1]
<RewardForSendingMatchingChatMessage> ... </RewardForSendingMatchingChatMessage> [0..1]
<RewardForCollectingItem> ... </RewardForCollectingItem> [0..1]
<RewardForDiscardingItem> ... </RewardForDiscardingItem> [0..1]
<RewardForReachingPosition> ... </RewardForReachingPosition> [0..1]
<RewardForMissionEnd> ... </RewardForMissionEnd> [0..1]
<RewardForStructureCopying> ... </RewardForStructureCopying> [0..1]
<RewardForTimeTaken> ... </RewardForTimeTaken> [0..1]
<RewardForCatchingMob> ... </RewardForCatchingMob> [0..1]
<RewardForDamagingEntity> ... </RewardForDamagingEntity> [0..1]
<ContinuousMovementCommands> ... </ContinuousMovementCommands> [0..1]
<AbsoluteMovementCommands> ... </AbsoluteMovementCommands> [0..1]
<DiscreteMovementCommands> ... </DiscreteMovementCommands> [0..1]
<InventoryCommands> ... </InventoryCommands> [0..1]
<ChatCommands> ... </ChatCommands> [0..1]
<SimpleCraftCommands> ... </SimpleCraftCommands> [0..1]
<MissionQuitCommands> ... </MissionQuitCommands> [0..1]
<TurnBasedCommands> ... </TurnBasedCommands> [0..1]
<AgentQuitFromTimeUp> ... </AgentQuitFromTimeUp> [0..1]
<AgentQuitFromReachingPosition> ... </AgentQuitFromReachingPosition> [0..1]
<AgentQuitFromTouchingBlockType> ... </AgentQuitFromTouchingBlockType> [0..1]
<AgentQuitFromCollectingItem> ... </AgentQuitFromCollectingItem> [0..1]
<AgentQuitFromReachingCommandQuota> ... </AgentQuitFromReachingCommandQuota> [0..1]
<AgentQuitFromCatchingMob> ... </AgentQuitFromCatchingMob> [0..1]
End All
</AgentHandlers>
Schema Component Representation
<xs:element name="AgentHandlers">
<xs:complexType>
<xs:group ref="AgentMissionHandlers"/>
</xs:complexType>
</xs:element>
top

Element: AgentSection

Name AgentSection
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<AgentSection
mode="GameMode [0..1]">
<Name> xs:string </Name> [1]
<AgentStart> ... </AgentStart> [1]
<AgentHandlers> ... </AgentHandlers> [1]
</AgentSection>
Schema Component Representation
<xs:element name="AgentSection">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element ref="AgentStart"/>
<xs:element ref="AgentHandlers"/>
</xs:sequence>
<xs:attribute name="mode" type="GameMode" use="optional" default="Survival"/>
</xs:complexType>
</xs:element>
top

Element: AgentStart

Name AgentStart
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<AgentStart>
Start All [1]
<Placement> PosAndDirection </Placement> [0..1] ?
<Inventory> [0..1]
Start Choice [0..*]
<InventoryObject> ... </InventoryObject> [1]
End Choice
</Inventory>
End All
</AgentStart>
Schema Component Representation
<xs:element name="AgentStart">
<xs:complexType>
<xs:all>
<xs:element name="Placement" type="PosAndDirection" minOccurs="0" maxOccurs="1"/>
<xs:element name="Inventory" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<-- minOccurs = 0 to allow an empty Inventory -->
<xs:element ref="InventoryObject"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
top

Element: InventoryBlock

  • This element can be used wherever the following element is referenced:
Name InventoryBlock
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<InventoryBlock
slot="xs:int (0 <= value <= 39) [1]"
type="BlockOrItem [1]"
variant="Variation [0..1]"
colour="Colour [0..1]"
quantity="xs:int (1 <= value <= 64) [0..1]"/>
Schema Component Representation
<xs:element name="InventoryBlock" substitutionGroup="InventoryObject">
<xs:complexType>
<xs:complexContent>
<xs:extension base="InventoryObjectType"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
top

Element: InventoryItem

  • This element can be used wherever the following element is referenced:
Name InventoryItem
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<InventoryItem
slot="xs:int (0 <= value <= 39) [1]"
type="BlockOrItem [1]"
variant="Variation [0..1]"
colour="Colour [0..1]"
quantity="xs:int (1 <= value <= 64) [0..1]"/>
Schema Component Representation
<xs:element name="InventoryItem" substitutionGroup="InventoryObject">
<xs:complexType>
<xs:complexContent>
<xs:extension base="InventoryObjectType"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
top

Element: InventoryObject

Name InventoryObject
Type InventoryObjectType
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<InventoryObject
slot="xs:int (0 <= value <= 39) [1]"
type="BlockOrItem [1]"
variant="Variation [0..1]"
colour="Colour [0..1]"
quantity="xs:int (1 <= value <= 64) [0..1]"/>
Schema Component Representation
<xs:element name="InventoryObject" type="InventoryObjectType"/>
top

Element: Mission

Name Mission
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<Mission
SchemaVersion="xs:token [0..1]">
<About> ... </About> [1]
<ModSettings> ... </ModSettings> [0..1]
<ServerSection> ... </ServerSection> [1]
<AgentSection> ... </AgentSection> [1..*]
</Mission>
Schema Component Representation
<xs:element name="Mission">
<xs:complexType>
<xs:sequence>
<xs:element ref="About"/>
<xs:element ref="ModSettings" minOccurs="0" maxOccurs="1"/>
<xs:element ref="ServerSection" minOccurs="1" maxOccurs="1"/>
<xs:element ref="AgentSection" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="SchemaVersion" type="xs:token"/>
</xs:complexType>
</xs:element>
top

Element: ModSettings

Name ModSettings
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<ModSettings>
Start All [1]
<MsPerTick> xs:int (value >= 1) </MsPerTick> [0..1] ?
<PrioritiseOffscreenRendering> xs:boolean </PrioritiseOffscreenRendering> [0..1] ?
End All
</ModSettings>
Schema Component Representation
<xs:element name="ModSettings">
<xs:complexType>
<xs:all>
<xs:element name="MsPerTick" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PrioritiseOffscreenRendering" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
</xs:all>
</xs:complexType>
</xs:element>
top

Element: ServerHandlers

Name ServerHandlers
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<ServerHandlers>
Start Choice [1]
<FlatWorldGenerator> ... </FlatWorldGenerator> [1]
<FileWorldGenerator> ... </FileWorldGenerator> [1]
<DefaultWorldGenerator> ... </DefaultWorldGenerator> [1]
End Choice
Start Choice [0..*]
<DrawingDecorator> ... </DrawingDecorator> [1]
<AnimationDecorator> ... </AnimationDecorator> [1]
<MazeDecorator> ... </MazeDecorator> [1]
<ClassroomDecorator> ... </ClassroomDecorator> [1]
<SnakeDecorator> ... </SnakeDecorator> [1]
<MovingTargetDecorator> ... </MovingTargetDecorator> [1]
<BuildBattleDecorator> ... </BuildBattleDecorator> [1]
End Choice
Start Choice [0..*]
<ServerQuitFromTimeUp> ... </ServerQuitFromTimeUp> [1]
<ServerQuitWhenAnyAgentFinishes> ... </ServerQuitWhenAnyAgentFinishes> [1]
End Choice
</ServerHandlers>
Schema Component Representation
<xs:element name="ServerHandlers">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="FlatWorldGenerator"/>
<xs:element ref="FileWorldGenerator"/>
<xs:element ref="DefaultWorldGenerator"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="DrawingDecorator"/>
<xs:element ref="AnimationDecorator"/>
<xs:element ref="MazeDecorator"/>
<xs:element ref="ClassroomDecorator"/>
<xs:element ref="SnakeDecorator"/>
<xs:element ref="MovingTargetDecorator"/>
<xs:element ref="BuildBattleDecorator"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="ServerQuitFromTimeUp"/>
<xs:element ref="ServerQuitWhenAnyAgentFinishes"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: ServerInitialConditions

Name ServerInitialConditions
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<ServerInitialConditions>
Start All [1]
<Time> ... </Time> [0..1]
<Weather> ... </Weather> [0..1]
<AllowSpawning> xs:boolean </AllowSpawning> [0..1] ?
<AllowedMobs> list of: EntityTypes </AllowedMobs> [0..1] ?
End All
</ServerInitialConditions>
Schema Component Representation
<xs:element name="ServerInitialConditions">
<xs:complexType>
<xs:all>
<xs:element ref="Time" minOccurs="0" maxOccurs="1"/>
<xs:element ref="Weather" minOccurs="0" maxOccurs="1"/>
<xs:element name="AllowSpawning" type="xs:boolean" minOccurs="0" maxOccurs="1" default="false"/>
<xs:element name="AllowedMobs" minOccurs="0" maxOccurs="1">
<xs:simpleType>
<xs:list itemType="EntityTypes"/>
</xs:simpleType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
top

Element: ServerSection

Name ServerSection
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<ServerSection>
<ServerInitialConditions> ... </ServerInitialConditions> [0..1]
<ServerHandlers> ... </ServerHandlers> [1]
</ServerSection>
Schema Component Representation
<xs:element name="ServerSection">
<xs:complexType>
<xs:sequence>
<xs:element ref="ServerInitialConditions" minOccurs="0" maxOccurs="1"/>
<xs:element ref="ServerHandlers"/>
</xs:sequence>
</xs:complexType>
</xs:element>
top

Element: StartTime

Name StartTime
Type Locally-defined simple type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<StartTime> xs:int (0 <= value <= 23999) </StartTime>
Schema Component Representation
<xs:element name="StartTime">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="23999"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
top

Element: Time

Name Time
Type Locally-defined complex type
Nillable no
Abstract no
Javascript required.
XML Instance Representation
<Time>
Start All [1]
<StartTime> ... </StartTime> [0..1]
<AllowPassageOfTime> xs:boolean </AllowPassageOfTime> [0..1] ?
End All
</Time>
Schema Component Representation
<xs:element name="Time">
<xs:complexType>
<xs:all>
<xs:element ref="StartTime" minOccurs="0" maxOccurs="1"/>
<xs:element name="AllowPassageOfTime" type="xs:boolean" minOccurs="0" maxOccurs="1" default="true"/>
</xs:all>
</xs:complexType>
</xs:element>
top

Element: Weather

Name Weather
Type Locally-defined simple type
Nillable no
Abstract no
Default Value normal
Javascript required.
XML Instance Representation
<Weather> xs:string (value comes from list: {'normal'|'clear'|'rain'|'thunder'}) </Weather>
Schema Component Representation
<xs:element name="Weather" default="normal">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="normal"/>
<xs:enumeration value="clear"/>
<xs:enumeration value="rain"/>
<xs:enumeration value="thunder"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
top

Global Definitions

Complex Type: InventoryObjectType

Super-types: None
Sub-types: None
Name InventoryObjectType
Abstract no
XML Instance Representation
<...
slot="xs:int (0 <= value <= 39) [1]"
type="BlockOrItem [1]"
variant="Variation [0..1]"
colour="Colour [0..1]"
quantity="xs:int (1 <= value <= 64) [0..1]"/>
Schema Component Representation
<xs:complexType name="InventoryObjectType">
<xs:attribute name="slot" use="required">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="39"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="type" type="BlockOrItem" use="required"/>
<xs:attribute name="variant" type="Variation" use="optional"/>
<xs:attribute name="colour" type="Colour" use="optional"/>
<xs:attribute name="quantity" default="1">
<xs:simpleType>
<xs:restriction base="xs:int">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
top

Model Group: AgentMissionHandlers

Name AgentMissionHandlers
Javascript required.

Application Data

<jaxb:property name="AgentMissionHandlers"/>
XML Instance Representation
Start All [1]
<ObservationFromRecentCommands> ... </ObservationFromRecentCommands> [0..1]
<ObservationFromHotBar> ... </ObservationFromHotBar> [0..1]
<ObservationFromFullStats> ... </ObservationFromFullStats> [0..1]
<ObservationFromFullInventory> ... </ObservationFromFullInventory> [0..1]
<ObservationFromSubgoalPositionList> ... </ObservationFromSubgoalPositionList> [0..1]
<ObservationFromGrid> ... </ObservationFromGrid> [0..1]
<ObservationFromDistance> ... </ObservationFromDistance> [0..1]
<ObservationFromDiscreteCell> ... </ObservationFromDiscreteCell> [0..1]
<ObservationFromChat> ... </ObservationFromChat> [0..1]
<ObservationFromNearbyEntities> ... </ObservationFromNearbyEntities> [0..1]
<ObservationFromRay> ... </ObservationFromRay> [0..1]
<ObservationFromTurnScheduler> ... </ObservationFromTurnScheduler> [0..1]
<VideoProducer> ... </VideoProducer> [0..1]
<RewardForTouchingBlockType> ... </RewardForTouchingBlockType> [0..1]
<RewardForSendingCommand> ... </RewardForSendingCommand> [0..1]
<RewardForSendingMatchingChatMessage> ... </RewardForSendingMatchingChatMessage> [0..1]
<RewardForCollectingItem> ... </RewardForCollectingItem> [0..1]
<RewardForDiscardingItem> ... </RewardForDiscardingItem> [0..1]
<RewardForReachingPosition> ... </RewardForReachingPosition> [0..1]
<RewardForMissionEnd> ... </RewardForMissionEnd> [0..1]
<RewardForStructureCopying> ... </RewardForStructureCopying> [0..1]
<RewardForTimeTaken> ... </RewardForTimeTaken> [0..1]
<RewardForCatchingMob> ... </RewardForCatchingMob> [0..1]
<RewardForDamagingEntity> ... </RewardForDamagingEntity> [0..1]
<ContinuousMovementCommands> ... </ContinuousMovementCommands> [0..1]
<AbsoluteMovementCommands> ... </AbsoluteMovementCommands> [0..1]
<DiscreteMovementCommands> ... </DiscreteMovementCommands> [0..1]
<InventoryCommands> ... </InventoryCommands> [0..1]
<ChatCommands> ... </ChatCommands> [0..1]
<SimpleCraftCommands> ... </SimpleCraftCommands> [0..1]
<MissionQuitCommands> ... </MissionQuitCommands> [0..1]
<TurnBasedCommands> ... </TurnBasedCommands> [0..1]
<AgentQuitFromTimeUp> ... </AgentQuitFromTimeUp> [0..1]
<AgentQuitFromReachingPosition> ... </AgentQuitFromReachingPosition> [0..1]
<AgentQuitFromTouchingBlockType> ... </AgentQuitFromTouchingBlockType> [0..1]
<AgentQuitFromCollectingItem> ... </AgentQuitFromCollectingItem> [0..1]
<AgentQuitFromReachingCommandQuota> ... </AgentQuitFromReachingCommandQuota> [0..1]
<AgentQuitFromCatchingMob> ... </AgentQuitFromCatchingMob> [0..1]
End All
Schema Component Representation
<xs:group name="AgentMissionHandlers">
<xs:all>
<xs:element ref="ObservationFromRecentCommands" minOccurs="0"/>
<xs:element ref="ObservationFromHotBar" minOccurs="0"/>
<xs:element ref="ObservationFromFullStats" minOccurs="0"/>
<xs:element ref="ObservationFromFullInventory" minOccurs="0"/>
<xs:element ref="ObservationFromSubgoalPositionList" minOccurs="0"/>
<xs:element ref="ObservationFromGrid" minOccurs="0"/>
<xs:element ref="ObservationFromDistance" minOccurs="0"/>
<xs:element ref="ObservationFromDiscreteCell" minOccurs="0"/>
<xs:element ref="ObservationFromChat" minOccurs="0"/>
<xs:element ref="ObservationFromNearbyEntities" minOccurs="0"/>
<xs:element ref="ObservationFromRay" minOccurs="0"/>
<xs:element ref="ObservationFromTurnScheduler" minOccurs="0"/>
<xs:element ref="VideoProducer" minOccurs="0"/>
<xs:element ref="RewardForTouchingBlockType" minOccurs="0"/>
<xs:element ref="RewardForSendingCommand" minOccurs="0"/>
<xs:element ref="RewardForSendingMatchingChatMessage" minOccurs="0"/>
<xs:element ref="RewardForCollectingItem" minOccurs="0"/>
<xs:element ref="RewardForDiscardingItem" minOccurs="0"/>
<xs:element ref="RewardForReachingPosition" minOccurs="0"/>
<xs:element ref="RewardForMissionEnd" minOccurs="0"/>
<xs:element ref="RewardForStructureCopying" minOccurs="0"/>
<xs:element ref="RewardForTimeTaken" minOccurs="0"/>
<xs:element ref="RewardForCatchingMob" minOccurs="0"/>
<xs:element ref="RewardForDamagingEntity" minOccurs="0"/>
<xs:element ref="ContinuousMovementCommands" minOccurs="0"/>
<xs:element ref="AbsoluteMovementCommands" minOccurs="0"/>
<xs:element ref="DiscreteMovementCommands" minOccurs="0"/>
<xs:element ref="InventoryCommands" minOccurs="0"/>
<xs:element ref="ChatCommands" minOccurs="0"/>
<xs:element ref="SimpleCraftCommands" minOccurs="0"/>
<xs:element ref="MissionQuitCommands" minOccurs="0"/>
<xs:element ref="TurnBasedCommands" minOccurs="0"/>
<-- When adding a new command handler, make sure to update MissionSpec::getListOfCommandHandlers and MissionSpec::getAllowedCommands, and add to TurnBasedApplicableCommandHandlers (below) if appropriate -->
<xs:element ref="AgentQuitFromTimeUp" minOccurs="0"/>
<xs:element ref="AgentQuitFromReachingPosition" minOccurs="0"/>
<xs:element ref="AgentQuitFromTouchingBlockType" minOccurs="0"/>
<xs:element ref="AgentQuitFromCollectingItem" minOccurs="0"/>
<xs:element ref="AgentQuitFromReachingCommandQuota" minOccurs="0"/>
<xs:element ref="AgentQuitFromCatchingMob" minOccurs="0"/>
</xs:all>
</xs:group>
top

Model Group: TurnBasedApplicableCommandHandlers

Name TurnBasedApplicableCommandHandlers
Javascript required.

Application Data

<jaxb:property name="TurnBasedApplicableCommandHandlers"/>
XML Instance Representation
Start All [1]
<AbsoluteMovementCommands> ... </AbsoluteMovementCommands> [0..1]
<DiscreteMovementCommands> ... </DiscreteMovementCommands> [0..1]
<InventoryCommands> ... </InventoryCommands> [0..1]
<ChatCommands> ... </ChatCommands> [0..1]
<SimpleCraftCommands> ... </SimpleCraftCommands> [0..1]
<MissionQuitCommands> ... </MissionQuitCommands> [0..1]
End All
Schema Component Representation
<xs:group name="TurnBasedApplicableCommandHandlers">
<xs:all>
<xs:element ref="AbsoluteMovementCommands" minOccurs="0"/>
<xs:element ref="DiscreteMovementCommands" minOccurs="0"/>
<xs:element ref="InventoryCommands" minOccurs="0"/>
<xs:element ref="ChatCommands" minOccurs="0"/>
<xs:element ref="SimpleCraftCommands" minOccurs="0"/>
<xs:element ref="MissionQuitCommands" minOccurs="0"/>
</xs:all>
</xs:group>
top

Simple Type: GameMode

Super-types: xs:string < GameMode (by restriction)
Sub-types: None
Name GameMode
Content
  • Base XSD Type: string
  • value comes from list: {'Survival'|'Creative'|'Adventure'|'Spectator'}
Javascript required.
Schema Component Representation
<xs:simpleType name="GameMode">
<xs:restriction base="xs:string">
<xs:enumeration value="Survival"/>
<xs:enumeration value="Creative"/>
<xs:enumeration value="Adventure"/>
<xs:enumeration value="Spectator"/>
</xs:restriction>
</xs:simpleType>
top

Legend

Complex Type:

Schema Component Type

AusAddress

Schema Component Name
Super-types: Address < AusAddress (by extension)
Sub-types:
  • QLDAddress (by restriction)
If this schema component is a type definition, its type hierarchy is shown in a gray-bordered box.
Name AusAddress
Abstract no
The table above displays the properties of this schema component.
XML Instance Representation
<... country="Australia">
<unitNo> string </unitNo> [0..1]
<houseNo> string </houseNo> [1]
<street> string </street> [1]
Start Choice[1]
<city> string </city> [1]
<town> string </town> [1]
End Choice
<state> AusStates </state> [1]
<postcode> string <<pattern = [1-9][0-9]{3}>> </postcode> [1]?
</...>

The XML Instance Representation table above shows the schema component's content as an XML instance.

Schema Component Representation
<complexTypename="AusAddress">
<complexContent>
<extensionbase="Address">
<sequence>
<elementname="state" type="AusStates"/>
<elementname="postcode">
<simpleType>
<restrictionbase="string">
<patternvalue="[1-9][0-9]{3}"/>
</restriction>
</simpleType>
</element>
</sequence>
<attributename="country" type="string" fixed="Australia"/>
</extension>
</complexContent>
</complexType>
The Schema Component Representation table above displays the underlying XML representation of the schema component. (Annotations are not shown.)
top

Glossary

Abstract (Applies to complex type definitions and element declarations). An abstract element or complex type cannot used to validate an element instance. If there is a reference to an abstract element, only element declarations that can substitute the abstract element can be used to validate the instance. For references to abstract type definitions, only derived types can be used.

All Model Group Child elements can be provided in any order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-all.

Choice Model Group Only one from the list of child elements and model groups can be provided in instances. See: http://www.w3.org/TR/xmlschema-1/#element-choice.

Collapse Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32). Then, collapse contiguous sequences of space characters into single space character, and remove leading and trailing space characters.

Disallowed Substitutions (Applies to element declarations). If substitution is specified, then substitution group members cannot be used in place of the given element declaration to validate element instances. If derivation methods, e.g. extension, restriction, are specified, then the given element declaration will not validate element instances that have types derived from the element declaration's type using the specified derivation methods. Normally, element instances can override their declaration's type by specifying an xsi:type attribute.

Key Constraint Like Uniqueness Constraint, but additionally requires that the specified value(s) must be provided. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Key Reference Constraint Ensures that the specified value(s) must match value(s) from a Key Constraint or Uniqueness Constraint. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

Model Group Groups together element content, specifying the order in which the element content can occur and the number of times the group of element content may be repeated. See: http://www.w3.org/TR/xmlschema-1/#Model_Groups.

Nillable (Applies to element declarations). If an element declaration is nillable, instances can use the xsi:nil attribute. The xsi:nil attribute is the boolean attribute, nil, from the http://www.w3.org/2001/XMLSchema-instance namespace. If an element instance has an xsi:nil attribute set to true, it can be left empty, even though its element declaration may have required content.

Notation A notation is used to identify the format of a piece of data. Values of elements and attributes that are of type, NOTATION, must come from the names of declared notations. See: http://www.w3.org/TR/xmlschema-1/#cNotation_Declarations.

Preserve Whitespace Policy Preserve whitespaces exactly as they appear in instances.

Prohibited Derivations (Applies to type definitions). Derivation methods that cannot be used to create sub-types from a given type definition.

Prohibited Substitutions (Applies to complex type definitions). Prevents sub-types that have been derived using the specified derivation methods from validating element instances in place of the given type definition.

Replace Whitespace Policy Replace tab, line feed, and carriage return characters with space character (Unicode character 32).

Sequence Model Group Child elements and model groups must be provided in the specified order in instances. See: http://www.w3.org/TR/xmlschema-1/#element-sequence.

Substitution Group Elements that are members of a substitution group can be used wherever the head element of the substitution group is referenced.

Substitution Group Exclusions (Applies to element declarations). Prohibits element declarations from nominating themselves as being able to substitute a given element declaration, if they have types that are derived from the original element's type using the specified derivation methods.

Target Namespace The target namespace identifies the namespace that components in this schema belongs to. If no target namespace is provided, then the schema components do not belong to any namespace.

Uniqueness Constraint Ensures uniqueness of an element/attribute value, or a combination of values, within a specified scope. See: http://www.w3.org/TR/xmlschema-1/#cIdentity-constraint_Definitions.

top