This repository has been archived on 2020-12-30. You can view files and clone it, but cannot push or open issues or pull requests.
NetworkPacketComposer/xml/editorelement.xsd

50 lines
1.5 KiB
XML
Raw Permalink Normal View History

2016-08-04 07:29:54 +02:00
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://mmo.to"
xmlns="http://mmo.to"
elementFormDefault="qualified">
<xs:element name="element" type="editorelement" />
<xs:complexType name="editorelement">
<xs:element name="title" type="xs:string"/>
<xs:element name="description" type="xs:string"/>
<xs:element name="syntaxes">
<xs:sequence minOccurs="1">
<xs:element name="syntax" type="syntaxregex" />
</xs:sequence>
</xs:element>
<xs:element name="datatype" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="text"/>
<xs:enumeration value="integer"/>
<xs:enumeration value="float"/>
<xs:enumeration value="bytes"/>
<xs:enumeration value="bits"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="endianess">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="little"/>
<xs:enumeration value="middle"/>
<xs:enumeration value="big"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="length" type="xs:integer" />
<xs:element name="optional" type="xs:boolean" />
<xs:element name="otherprotocol" type="xs:boolean" minOccurs="0" maxOccurs="1"/>
</xs:complexType>
<xs:complexType name="syntaxregex">
<xs:element name="regex" type="xs:string" />
<xs:element name="example" type="xs:string" />
</xs:complexType>
</xs:schema>