XSD error: Element is a simple type, so it must have no element information item [children]
<p>I am working on a very basic XML schema and I am receiving </p>

<blockquote>
  <p>cvc-type.3.1.2: Element 'creator' is a simple type, so it must have no
  element information item [children]. [8]</p>
</blockquote>

<p>in NetBeans when I attempt to validate XML. I am following the W3 schools tutorial and it seems my code is very similar to theirs. I am confused how the error states creator is a simple type when I declared it as complex. Did I incorrectly declare the creator element as a complex type?</p>

<p><strong>XML doc:</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;gallery
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="Proj1Schema.xsd"&gt;
    &lt;creator&gt;
        &lt;name&gt;John Doe&lt;/name&gt;
    &lt;/creator&gt;
&lt;/gallery&gt;
</code></pre>

<p><strong>Schema:</strong></p>

<pre><code>&lt;?xml version="1.0"?&gt;

&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://xml.netbeans.org/schema/gallery"
    elementFormDefault="qualified"&gt;

    &lt;xs:element name="creator"&gt;
            &lt;xs:complexType&gt;
                &lt;xs:sequence&gt;
                    &lt;xs:element name="name" type="xs:string"/&gt;
                &lt;/xs:sequence&gt;
            &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;

    &lt;xs:element name="gallery"&gt;
        &lt;xs:complexType&gt;
            &lt;xs:sequence&gt;
                &lt;xs:element name="creator" type="xs:string"/&gt;
            &lt;/xs:sequence&gt;
        &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;

&lt;/xs:schema&gt;
</code></pre>