Mega Code Archive

 
Categories / XML Tutorial / XML Schema
 

The normalizedString datatype is derived from the string type

<!-- schema --> <xsd:element name="myString">   <xsd:simpleType>    <xsd:restriction base="xsd:normalizedString">     <xsd:maxLength value="50"/>    </xsd:restriction>   </xsd:simpleType> </xsd:element> <!-- instance document --> <myString>Here’s one. </myString>