title: XSD Element Not Null or Empty Constraint For Xml?
body: <p>This is my sample XML Code:</p>
  
  <pre><code>&lt;bestContact&gt;
  &lt;firstName&gt;&lt;![CDATA[12345]]&gt;&lt;/firstName&gt;
  &lt;lastName /&gt;
  &lt;/bestContact&gt;
  </code></pre>
  
  <p>I am using:</p>
  
  <pre><code>&lt;xs:element name="lastName" type="xs:string" minOccurs="1" nillable="false"/&gt;
  </code></pre>
  
  <p>The XSD Should be validate <code>lastName</code> as not null or empty.</p>