XML Tutorial/XML Schema/unsignedByte — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 11:26, 26 мая 2010

The unsignedByte data type is derived from the unsignedShort type.

   <source lang="xml">

The value space is the set of integers greater than or equal to 0 and less than or equal to 255. The lexical space is a finite-length sequence of decimal digits.

<xsd:complexType name="RGB">

 <xsd:sequence>
  <xsd:element name="red" type="xsd:unsignedByte"/>
  <xsd:element name="green" type="xsd:unsignedByte"/>
  <xsd:element name="blue" type="xsd:unsignedByte"/>
 </xsd:sequence>

</xsd:complexType>

<red>33</red> <green>255</green> <blue>99</blue></source>