none
xsd.exe: do not generate extending type

    Question

  • Hi!

    Example:

    ParentTypes.xsd

      <xs:complexType name="MyParentType">
        <xs:attribute name="Value" type="xs:string" />
      </xs:complexType>

    ChildTypes.xsd

      

    <xs:include schemaLocation="ParentTypes.xsd"/>

    <xs:complexType name="MyChildType"> <xs:complexContent> <xs:extension base="MaParentType"> <xs:sequence> <xs:element name="ParentValue" type="xs:int"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType>

    In this case xsd.exe tool generates parent and child types in the same file. How could I prevent generating of a parent type?

    Friday, June 21, 2013 9:33 AM