Enums not getting generated

Nov 30, 2013 at 3:35 AM
Edited Nov 30, 2013 at 3:47 AM
The following XSD is not generating Enums for the enumeration options. Is this a bug or am I missing a configuration option?
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <xsd:simpleType name="CoverageStatusCodeContent_Type">
      <xsd:restriction base="xsd:QName">
         <xsd:enumeration value="Excluded"/>
         <xsd:enumeration value="Included"/>
         <xsd:enumeration value="Reinstated"/>
         <xsd:enumeration value="Rejected"/>
         <xsd:enumeration value="Suspended"/>
Enums generate when I change the restriction to xsd:string and move the name to an xsd:element. I cannot do this with the 3rd party XSD which has hundreds of enum types in above format.
  <xsd:element name="CoverageStatusCodeContent_Type">
      <xsd:restriction base="xsd:string">