title: How to write to an existing XML file using java
body: <p>I've got an xml file looked like this. employees.xml</p>
  
  <pre><code>&lt;Employees&gt;
      &lt;Employee&gt;
          &lt;FirstName&gt;myFirstName&lt;/FirstName&gt;
          &lt;LastName&gt;myLastName&lt;/LastName&gt;
          &lt;Salary&gt;10000&lt;/Salary&gt;
      &lt;Employee&gt;
  &lt;/Employees&gt;
  </code></pre>
  
  <p>Now how do I add new Employee elements to the existing XML file?.. An example code is highly appreciated. </p>