title: XSD: how to restrict number of characters in string type attribute?
body: <p>I have a question regarding adding restriction in my xml schema(xsd). I have a complex-type like:</p>
  
  <pre><code>&lt;xsd:complexType name="xxx"&gt;
     &lt;xsd:attribute/&gt;
     .....
  &lt;/xsd:complexType&gt;
  </code></pre>
  
  <p>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?</p>
  
  <p>Thanks!
  -Ankush</p>