title: How to declare an element with only attributes in a XML schema?
body: <p>Given:</p>
  
  <pre><code>&lt;authentication password="turkey" partnerid="exam" /&gt;
  </code></pre>
  
  <p>how can I declare this element in a XML schema?</p>
  
  <p>I have got:</p>
  
  <pre><code>&lt;xs:element name="authentication" type="auth_type" /&gt;
  
  &lt;xs:complexType name ="auth_type"&gt;
    &lt;xs:simpleContent&gt;
      &lt;xs:extension base="xs:string"&gt;
        &lt;xs:attribute name="password" type="xs:string" /&gt;
        &lt;xs:attribute name="partnerid" type="xs:string" /&gt;
      &lt;/xs:extension&gt;
    &lt;/xs:simpleContent&gt;
  &lt;/xs:complexType&gt;
  </code></pre>
  
  <p>but it will allow the element to have text content, will it? I do not want that...</p>