i have my complexType element .have no idea how to set min and max number of characters allowed to use for element "author".
here is my complexType element from schema
for simpleType i already made this
here is my complexType element from schema
Code:
<xsd:element name="author">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute type="xsd:string" name="gender" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
Code:
<xsd:element name="original_title">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="3"/>
<xsd:maxLength value="22"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
Comment