title: Content type exception thrown for xsd validation in elements
body: <p>I have an element A which can be of simple element as well as complex which gets created dynamically.</p>
  
  <p>sample xml is here :</p>
  
  <pre><code> &lt;A&gt;john&lt;/A&gt;
  
   &lt;A&gt;
      &lt;B&gt;kathy&lt;/B&gt;
      &lt;C&gt; bat &lt;/C&gt;
   &lt;/A&gt;
  </code></pre>
  
  <p>my xsd is like this :</p>
  
  <pre><code>        &lt;xsd:element name="A"&gt;
                      &lt;xsd:complexType&gt;
                          &lt;xsd:choice minOccurs="0" maxOccurs="unbounded"&gt;
                              &lt;xsd:sequence&gt;
                                  &lt;xsd:element name="B" minOccurs="0" maxOccurs="unbounded" /&gt;
                                  &lt;xsd:element name="C" minOccurs="0" maxOccurs="unbounded" /&gt;
                              &lt;/xsd:sequence&gt;
                          &lt;/xsd:choice&gt;
                      &lt;/xsd:complexType&gt;
                  &lt;/xsd:element&gt;
  </code></pre>
  
  <p>But here i am facing an exception which says : </p>
  
  <p>Element 'A' cannot have character [children], because the type's content type is element-only</p>