title: XML Schema and element with type string
body: <p>I'm trying to create an XML Schema and I'm stuck. It seems I can't define an element with string content. What am I doing wrong?</p>
  
  <p>Schema:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://ponderka.wz.cz/MusicLibrary0" targetNamespace="http://ponderka.wz.cz/MusicLibrary0"&gt;
      &lt;xs:element name="music-library"&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element name="artist" type="xs:string"/&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>Document:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;music-library xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ponderka.wz.cz/MusicLibrary0 data0.xsd" xmlns="http://ponderka.wz.cz/MusicLibrary0"&gt;
      &lt;artist&gt;a&lt;/artist&gt;
  &lt;/music-library&gt;
  </code></pre>
  
  <p>The validator says:</p>
  
  <pre><code>Element &lt;artist&gt; is not allowed under element &lt;music-library&gt;.
      Reason: The following elements are expected at this location (see below)
          &lt;artist&gt;
      Error location: music-library / artist
      Details
          cvc-model-group: Element &lt;artist&gt; unexpected by type '{anonymous}' of element &lt;music-library&gt;.
          cvc-elt.5.2.1: The element &lt;music-library&gt; is not valid with respect to the actual type definition '{anonymous}'.
  </code></pre>