title: xsd Complex Types with Mixed Content
body: <p>I am reading <a href="http://www.w3schools.com/Schema/schema_complex_mixed.asp" rel="nofollow">this tutorial</a> and it states that to get an xml like this:</p>
  
  <pre><code>&lt;letter&gt;
    Dear Mr.&lt;name&gt;John Smith&lt;/name&gt;.
    Your order &lt;orderid&gt;1032&lt;/orderid&gt;
    will be shipped on &lt;shipdate&gt;2001-07-13&lt;/shipdate&gt;.
  &lt;/letter&gt; 
  </code></pre>
  
  <p>you need this xml schema definition:</p>
  
  <pre><code>&lt;xs:element name="letter"&gt;
    &lt;xs:complexType mixed="true"&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="name" type="xs:string"/&gt;
        &lt;xs:element name="orderid" type="xs:positiveInteger"/&gt;
        &lt;xs:element name="shipdate" type="xs:date"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt; 
  </code></pre>
  
  <p>But I see that is not completely correct.
  It defines the name, orderid, and shiptdate elements but it didn't define the plain text like <code>Dear Mr.</code>, <code>Your order</code> and <code>will be shipped on</code></p>
  
  <p>The only <code>xs:string</code> type has been assigned to the <code>name</code> element.</p>
  
  <p>Could you help me understanding that please?</p>
  
  <p>Many thanks</p>