title: Create output XML file in PHP
body: <p>How do I create this type of XML output using PHP?</p>
  
  <pre><code>&lt;Root&gt;
   &lt;base&gt;  rushi &lt;/base&gt;
   &lt;base&gt; stack &lt;/base&gt;
   &lt;base&gt; overflow &lt;/base&gt;
  &lt;root&gt;
  </code></pre>