title: How to create XML file with specific structure in Java
body: <p>I would like to create <code>XML</code> file using <code>Java</code>. </p>
  
  <p>My <code>XML</code> file structure:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;CONFIGURATION&gt;
      &lt;BROWSER&gt;chrome&lt;/BROWSER&gt;
      &lt;BASE&gt;http:fut&lt;/BASE&gt;
      &lt;ENVIRONMENT&gt;abcd&lt;/ENVIRONMENT&gt;
      &lt;USER&gt;john&lt;/USER&gt;
      &lt;PASSWORD&gt;abcd123&lt;/PASSWORD&gt;
      &lt;ORGANIZATION&gt;Tim&lt;/ORGANIZATION&gt;
      &lt;EMPLOYEE&gt;
          &lt;EMP_NAME&gt;Anhorn, Irene&lt;/EMP_NAME&gt;
          &lt;ACT_DATE&gt;20131201&lt;/ACT_DATE&gt;
          &lt;DATE_IN&gt;20131201&lt;/DATE_IN&gt;
          &lt;CLOCK_IN&gt;0800&lt;/CLOCK_IN&gt;
          &lt;DATE_OUT&gt;20131201&lt;/DATE_OUT&gt;
          &lt;CLOCK_OUT&gt;1600&lt;/CLOCK_OUT&gt; 
      &lt;/EMPLOYEE&gt;
      &lt;EMPLOYEE&gt;
          &lt;EMP_NAME&gt;Arlegui, Karen Jay&lt;/EMP_NAME&gt;
          &lt;ACT_DATE&gt;20131201&lt;/ACT_DATE&gt;
          &lt;DATE_IN&gt;20131201&lt;/DATE_IN&gt;
          &lt;CLOCK_IN&gt;1600&lt;/CLOCK_IN&gt;
          &lt;DATE_OUT&gt;20131202&lt;/DATE_OUT&gt;
          &lt;CLOCK_OUT&gt;0000&lt;/CLOCK_OUT&gt; 
      &lt;/EMPLOYEE&gt;
  &lt;/CONFIGURATION&gt;
  </code></pre>