title: How to create an XML file where all the tags are having null values using python
body: <p>I want to create an XML file using python (v3.6) where all the tags will be having no values. For example - </p>
  
  <pre><code>    &lt;rootTag&gt;
        &lt;A&gt;&lt;/A&gt;
        &lt;B&gt;
          &lt;B1&gt;&lt;/B1&gt;
          &lt;B2&gt;&lt;/B2&gt;
          &lt;B3&gt;&lt;/B3&gt;
        &lt;/B&gt;
      &lt;/rootTag&gt;
  </code></pre>
  
  <p>Is there any easy way to do this?</p>