title: Error when generating a class from xsd schema file
body: <p>I'm trying to generate a class from an xsd schema but I obtain the following error message:</p>
  
  <blockquote>
    <p><em>Warning: cannot generate classes because no top-level elements with complex type were found.</em></p>
  </blockquote>
  
  <p>My xsd file looks like that:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xs:schema id="MonitoringConfiguration"
      targetNamespace="urn:MonitoringConfiguration-1.0"
      elementFormDefault="qualified"
      xmlns="urn:MonitoringConfiguration-1.0"
      xmlns:xs="http://www.w3.org/2001/XMLSchema"
  &gt;
  
    &lt;xs:complexType name="MonitoringConfiguration"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Machine" type="Machine" minOccurs="0" /&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  
    &lt;xs:complexType name="Machine"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="Component" type="Component" maxOccurs="unbounded" minOccurs="0"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  
    &lt;xs:complexType name="Component"&gt;
      &lt;xs:attribute name="Name" type="xs:string" use="required"/&gt;
      &lt;xs:attribute name="Type" type="xs:string" use="optional"/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>I'm generating the class with the following command line:</p>
  
  <pre><code>xsd MonitoringConfiguration.xsd /languages:CS /Classes
  </code></pre>
  
  <p>Note I have already defined a top level element with complex type (MonitoringConfiguration).</p>
  
  <p>What's wrong?</p>
  
  <p>Thanks</p>