I have a question regarding adding restriction in my xml schema(xsd). I have a complex-type like:
<xsd:complexType name="xxx">
<xsd:attribute/>
.....
</xsd:complexType>
I have many attributes in this complex-type, and few of them are of string type. Now I want those string type attributes to be restricted to y no. of chars, how do I add this restriction?
Thanks!
-Ankush
You need to create a simple type like so:
and then use this new type in your schema:
Marc