XML Tutorial/XML Schema/byte
Версия от 18:22, 25 мая 2010; (обсуждение)
The byte data type is derived from the short type.
The value space is integer values from ?8 up to and including 127.
The lexical space is a finite-length sequence of decimal digits with an optional leading - or +.
<!-- schema -->
<xsd:complexType name="myBytes">
<xsd:choice>
<xsd:element name="byte1" type="xsd:byte"/>
<xsd:element name="byte2" type="xsd:byte"/>
<xsd:element name="byte3" type="xsd:byte"/>
</xsd:choice>
</xsd:complexType>
<!-- instance document -->
<byte2>55</byte2>