I have a question regarding adding restriction in my xml schema(xsd). I have a complex-type like:
The answer by marc_s would require you to define a new type for every possible string length you might use. Instead you can define the restriction directly on the attribute itself.