Generating Class but it is not being use

Mar 30, 2011 at 1:57 PM

The below XSD snippet would generate three classes:  ProjectNameType, ProjectListType and EmployeeType but ProjectListType 
is not reference in EmployeeType, instead the it would be generated as List<ProjectNameType>.  Either it should generate and
use it or not generate it at all.
<xs:simpleType name="ProjectNameType">
    <xs:restriction base="xs:string"/>
</xs:simpleType>

<xs:complexType name="ProjectListType">
    <xs:sequence>
        <xs:element name="Projects" type="ProjectNameType" maxOccurs="unbounded"/>
    <xs:sequence>
</xs:complexType>

<xs:complexType name="EmployeeType">
    <xs:sequence>
        <xs:element name="ProjectList" type="ProjectListType"/>
    <xs:sequence>    
</xs:complexType>