title: XSD.exe /dataset is not creating enumerations from my xsd file
body: <p>I have created an XSD and have run XSD.exe on top of that .xsd file.  It seems that my simple types that are restricted to enumeration values are not being generated as enums in the outputted .cs file.</p>
  
  <p>For example, my xsd looks like this:</p>
  
  <pre><code>&lt;xs:element name="ItemList" nillable="false"&gt;
      &lt;xs:complexType&gt;
          &lt;xs:sequence minOccurs="1" maxOccurs="1"&gt;
              &lt;xs:element name="Item" type="ItemType" minOccurs="1" maxOccurs="unbounded" nillable="false"&gt;
              &lt;/xs:element&gt;
          &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  &lt;xs:complexType name="ItemType"&gt;
      &lt;xs:sequence maxOccurs="1" minOccurs="1"&gt;
          &lt;!-- other complex types, etc... --&gt;
      &lt;/xs:sequence&gt;
      &lt;xs:attribute name="Market" type="MarketType" use="required"&gt;
      &lt;/xs:attribute&gt;
      &lt;xs:attribute name="Category" type="CategoryType" use="required" /&gt;
  &lt;/xs:complexType&gt;
  &lt;xs:simpleType name="CategoryType"&gt;
      &lt;xs:restriction base="xs:string"&gt;
          &lt;xs:enumeration value="Mild" /&gt;
          &lt;xs:enumeration value="Hot" /&gt;
      &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  &lt;xs:simpleType name="MarketType"&gt;
      &lt;xs:restriction base="xs:string"&gt;
          &lt;xs:enumeration value="Weak" /&gt;
          &lt;xs:enumeration value="Strong" /&gt;
      &lt;/xs:restriction&gt;
  &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>When I run XSD.exe shouldn't the outputted .cs file have an xml enum attribute for each of my simple types?  <a href="http://msdn.microsoft.com/en-us/library/z2w0sxhf(VS.80).aspx" rel="nofollow noreferrer">This link says that it should</a>.  Maybe I am doing something wrong? No where in my .cs file do I see an enum.</p>
  
  <p>If you need any more information, let me know what I can provide.</p>
  
  <p>Thanks.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>It seems that I was using XSD.exe to create a dataset (/d switch), when I should have been creating a class (/c switch).  After I set it generate a class, it worked correctly.</p>