Xsd Element name classes not generated from xsd

Aug 27, 2012 at 6:00 PM

I am trying to generate c# classes from the below xsd. But the element name classes are not getting generated. Below is a tailored version of the xsd file 

Note that TestType and AbstractTestType classes are generated but not the TestName class.

<xs:element name="TestName" type="TestType"/>  <xs:complexType name="TestType">    <xs:annotation>      <xs:documentation source="since">2.0</xs:documentation>      <xs:documentation xml:lang="en">        Represents a Test.      </xs:documentation>    </xs:annotation>
    <xs:complexContent>      <xs:extension base="AbstractTestType">        <xs:attribute name="canModify" type="xs:boolean" use="optional">          <xs:annotation>            <xs:documentation source="modifiable">none</xs:documentation>            <xs:documentation xml:lang="en">              Flag to signify if modification allowed            </xs:documentation>          </xs:annotation>        </xs:attribute>      </xs:extension>    </xs:complexContent>  </xs:complexType>

Can any one help?


May 22, 2013 at 11:36 AM
Same thing for me.

How can I create the element name classes instead of the type classes?

Or do Jayanth09 and I want something that's unlogical?