chirp/chirp.xsd
Dan Smith 555127effd Split chirp schema into multiple files. Add bank specification to radio
and memory.  Change the struture a bit to include memories in a group.
2008-11-27 10:03:06 -08:00

48 lines
1.3 KiB
XML

<!--
CHIRP XML Schema
Copyright 2008 Dan Smith <dsmith@danplanet.com>
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="chirp_memory.xsd"/>
<xsd:include schemaLocation="chirp_banks.xsd"/>
<xsd:element name="radio" type="radioType"/>
<xsd:complexType name="radioType">
<xsd:sequence>
<xsd:element name="comment" type="xsd:string"
minOccurs="0" maxOccurs="1"/>
<xsd:element name="memories" type="memoryList"
minOccurs="1" maxOccurs="1"/>
<xsd:element name="banks" type="bankList"
minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="version" type="chirpSchemaVersionType"/>
</xsd:complexType>
<xsd:complexType name="memoryList">
<xsd:sequence>
<xsd:element name="memory" type="memoryType"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="bankList">
<xsd:sequence>
<xsd:element name="bank" type="bankType"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="chirpSchemaVersionType">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9][0-9]*.[0-9][0-9]*.[0-9]{1,4}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>