cvc-complex-type.2.4.b: The content of element 'tns:patient' is not complete
<p>In the below xsd I am trying to create a list of 10 patients using the same schema. When I validate the xml file I get an error saying cvc complex type 2.4.b.Is there any other way I can use to create a list of 10 patients with the same schema definition.</p>

<p>XSD file:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;schema xmlns="http://www.w3.org/2001/XMLSchema"  targetNamespace="http://www.hennaloungani.com/Patient"
xmlns:tns="http://www.hennaloungani.com/Patient"  elementFormDefault="qualified"&gt;

 &lt;element name="patient" type="tns:Patient" /&gt;
&lt;complexType name="Patient"&gt;
    &lt;sequence&gt;
        &lt;element name="patient" type="tns:Patient" maxOccurs="10" /&gt;
        &lt;element name="name" type="tns:Sting15Char"&gt;&lt;/element&gt;
        &lt;element name="age" type="int"&gt;&lt;/element&gt;
        &lt;element name="dob" type="date"&gt;&lt;/element&gt;
        &lt;element name="email" type="string" maxOccurs="unbounded"&gt;&lt;/element&gt;
        &lt;element name="gender" type="tns:Gender"&gt;&lt;/element&gt;
        &lt;element name="phone" type="string"&gt;&lt;/element&gt;
        &lt;element name="payment" type="tns:PaymentType"&gt;&lt;/element&gt;
    &lt;/sequence&gt;

    &lt;attribute name="id" type="tns:ID"&gt;&lt;/attribute&gt;
    &lt;/complexType&gt;


    &lt;complexType name="PaymentType"&gt;
        &lt;choice&gt;
            &lt;element name="Cash" type="int"&gt;&lt;/element&gt;
            &lt;element name="Insurance" type="tns:Insurance"&gt;&lt;/element&gt;
        &lt;/choice&gt;
    &lt;/complexType&gt;
    &lt;complexType name="Insurance"&gt;
        &lt;all&gt;
            &lt;element name="provider" type="string"&gt;&lt;/element&gt;
            &lt;element name="limit" type="int"&gt;&lt;/element&gt;

        &lt;/all&gt;

    &lt;/complexType&gt;
    &lt;simpleType name="ID"&gt;
        &lt;restriction base="int"&gt;
            &lt;pattern value="[0-100]"&gt;&lt;/pattern&gt;
        &lt;/restriction&gt;
    &lt;/simpleType&gt;

    &lt;simpleType name="Sting15Char"&gt;
        &lt;restriction base="string"&gt;
            &lt;maxLength value="15"&gt;&lt;/maxLength&gt;
        &lt;/restriction&gt;
    &lt;/simpleType&gt;
    &lt;simpleType name="Gender"&gt;
        &lt;restriction base="string"&gt;
            &lt;enumeration value="M"&gt;&lt;/enumeration&gt;
            &lt;enumeration value="F"&gt;&lt;/enumeration&gt;
        &lt;/restriction&gt;
    &lt;/simpleType&gt;
</code></pre>

<p></p>

<p>I am getting this error at line 2 : cvc-complex-type.2.4.b: The content of element 'tns:patient' is not complete. One of '{"http://
 www.hennaloungani.com/Patient":patient}' is expected</p>

<p>Xml file: </p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;tns:patient id="1" xmlns:tns="http://www.hennaloungani.com/Patient"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.hennaloungani.com/Patient Patient.xsd "&gt;
&lt;tns:patient id="1" /&gt;
&lt;tns:name&gt;tns:name&lt;/tns:name&gt;
&lt;tns:age&gt;0&lt;/tns:age&gt;
&lt;tns:dob&gt;2001-01-01&lt;/tns:dob&gt;
&lt;tns:email&gt;tns:email&lt;/tns:email&gt;
&lt;tns:gender&gt;M&lt;/tns:gender&gt;
&lt;tns:phone&gt;tns:phone&lt;/tns:phone&gt;
&lt;tns:payment&gt;
    &lt;tns:Cash&gt;0&lt;/tns:Cash&gt;
&lt;/tns:payment&gt;
</code></pre>

<p></p>