title: XSD error: The content is not valid. Expected is (annotation?)
body: <p>I am trying to write an XSD. The following component is causing error, when I try to parse an XML using this XSD. The error message is</p>
  
  <blockquote>
    <p>The content is not valid. Expected is (annotation?)., Line 9</p>
  </blockquote>
  
  <p>I tried deleting the <code>xs:annotation</code> portion, but with no luck.  I have both 'Job' and 'JobParameter' defined elsewhere. Can someone please help me?</p>
  
  <pre><code>&lt;xs:complexType name='JobsType'&gt;
      &lt;xs:annotation&gt;
        &lt;xs:documentation&gt;
          A collection of Jobs for this component
        &lt;/xs:documentation&gt;
      &lt;/xs:annotation&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref='Job' minOccurs='1' maxOccurs='unbounded'&gt;
          &lt;xs:complexType&gt;
            &lt;xs:annotation&gt;
              &lt;xs:documentation&gt;
                A job element
              &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
            &lt;xs:sequence&gt;
              &lt;xs:element name='JobParameters' type='JobParametersType' minOccurs='0' maxOccurs='1'&gt;
                &lt;xs:annotation&gt;
                  &lt;xs:documentation&gt;
                    A collection of job parameters
                  &lt;/xs:documentation&gt;
                &lt;/xs:annotation&gt;
              &lt;/xs:element&gt;
            &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
        &lt;/xs:element&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;xs:complexType name='JobParametersType'&gt;
      &lt;xs:annotation&gt;
        &lt;xs:documentation&gt;
          A collection of Actions for this component
        &lt;/xs:documentation&gt;
      &lt;/xs:annotation&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref='JobParameter' minOccurs='1' maxOccurs='unbounded'/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  </code></pre>