XML Tutorial/XML Schema/unsignedLong

Материал из Web эксперт
Версия от 11:26, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

The unsignedLong data type is derived from the nonNegativeInteger type.

   <source lang="xml">

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

<xsd:simpleType name="distance_sun">

 <xsd:restriction base="xsd:unsignedLong">
  <xsd:pattern value="\d{8}"/>
 </xsd:restriction>

</xsd:simpleType>

<distance_sun>939000000</distance_sun></source>