title: Cannot generate classes because no top-level elements with complex type where found
body: <p>I am trying to create a class from a xsd file using the XSD.EXE tool. but for some reason i get this error.</p>
  
  <blockquote>
    <p>Warning: cannot generate classes because no top-level elements with
    complex type were found.</p>
  </blockquote>
  
  <p>I have looked around on stack and seen that i could put a type on the complex type element but i cannot seem to get i to work. here is the xsd file</p>
  
  <pre><code>    &lt;?xml version="1.0"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
       targetNamespace="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"
       xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader"
       elementFormDefault="qualified" attributeFormDefault="unqualified"&gt;
  
    &lt;xs:complexType name="DocumentIdentification"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Standard" type="xs:string"/&gt;
        &lt;xs:element name="TypeVersion" type="xs:string"/&gt;
        &lt;xs:element name="InstanceIdentifier" type="xs:string"/&gt;
        &lt;xs:element name="Type" type="xs:string"/&gt;
        &lt;xs:element name="MultipleType" type="xs:boolean" minOccurs="0"/&gt;
        &lt;xs:element name="CreationDateAndTime" type="xs:dateTime"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>Thanks!</p>