title: XSD (XML schema): Element must have one more more children
body: <p>Let's say I have an XML element like this, and I'm trying to write the XSD for this element:</p>
  
  <pre><code>&lt;foo name="bar"&gt;
      ...
  &lt;/foo&gt;
  </code></pre>
  
  <p>The rules for this element are:</p>
  
  <ul>
  <li>Its name is "foo"</li>
  <li>It has an attribute with name "bar"</li>
  <li>Its "bar" attribute value is a string</li>
  <li>It must have one or more children</li>
  </ul>
  
  <p>This XSD encapsulate all of the rules except the last:</p>
  
  <p>
      
  </p>
  
  <p>How do I specify the last rule&mdash;that the element must have children?</p>