XML Tutorial/XML Schema/normalizedString

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

The normalizedString datatype is derived from the string type

   <source lang="xml">

<xsd:element name="myString">

 <xsd:simpleType>
  <xsd:restriction base="xsd:normalizedString">
   <xsd:maxLength value="50"/>
  </xsd:restriction>
 </xsd:simpleType>

</xsd:element>

<myString>Here?one. </myString></source>