title: XSD: restriction on type to not be empty /Blank and to exist? But its a simple type (string) inside a complexType
body: <p>I have an XSD, here is part of it defined below, but it's not working. I need to ensure that Name isn't like this</p>
  <pre><code>   &lt;Item Name=&quot;example&quot;&gt;&lt;/Item&gt; 
  </code></pre>
  <p>notice that there is nothing in between the tag, I run a validate and it passes. I have set use =&quot;required&quot;. And I also tried setting some restrictions but it said it can only do it with a simple type. Well it is a complexType with a string inside.</p>
  <pre><code>      &lt;xs:complexType&gt;
          &lt;xs:simpleContent msprop:Generator_ColumnVarNameInTable=&quot;columnItem_Text&quot; 
                  msprop:Generator_ColumnPropNameInRow=&quot;Item_Text&quot; 
                  msprop:Generator_ColumnPropNameInTable=&quot;Item_TextColumn&quot; 
                  msprop:Generator_UserColumnName=&quot;Item_Text&quot; 
                  msdata:ColumnName=&quot;Item_Text&quot; msdata:Ordinal=&quot;1&gt;
            &lt;xs:extension base=&quot;xs:string&quot; &gt;
              &lt;xs:attribute name=&quot;Name&quot;
                  msprop:Generator_ColumnVarNameInTable=&quot;columnName&quot; 
                  msprop:Generator_ColumnPropNameInRow=&quot;Name&quot; 
                  msprop:Generator_ColumnPropNameInTable=&quot;NameColumn&quot; 
                  msprop:Generator_UserColumnName=&quot;Name&quot; type=&quot;xs:string&quot;
                       use=&quot;required&quot; /&gt;
            &lt;/xs:extension&gt;
          &lt;/xs:simpleContent&gt;
        &lt;/xs:complexType&gt;
  </code></pre>