title: How to generate empty closed element use XMLGenerator?
body: <p>In django,</p>
  
  <pre><code>addQuickElement(name,content,attr)
  </code></pre>
  
  <p>generates XML like this</p>
  
  <pre><code>&lt;name attr="attr"&gt;content&lt;/name&gt;
  </code></pre>
  
  <p>While I want to generate</p>
  
  <pre><code>&lt;name attr="attr" /&gt;
  </code></pre>