XML Schema - simple type definition - Example 1

Content length restriction

<xs:simpleType name="nameType"> 
 <xs:restriction base="xs:string"> <xs:maxLength value="32"/>
</xs:restriction> </xs:simpleType>