title: Is my XML output supposed to be like this?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;staffs&gt;
      &lt;records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="employee"&gt;
          &lt;id&gt;1&lt;/id&gt;
          &lt;name&gt;Danial&lt;/name&gt;
          &lt;age&gt;20&lt;/age&gt;
          &lt;TFN&gt;1231231&lt;/TFN&gt;
          &lt;contact&gt;12314123&lt;/contact&gt;
          &lt;jobType&gt;WAITER&lt;/jobType&gt;
          &lt;wage&gt;12.0&lt;/wage&gt;
      &lt;/records&gt;
      &lt;records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="employee"&gt;
          &lt;id&gt;2&lt;/id&gt;
          &lt;name&gt;Andrew&lt;/name&gt;
          &lt;age&gt;21&lt;/age&gt;
          &lt;TFN&gt;1231254&lt;/TFN&gt;
          &lt;contact&gt;123677&lt;/contact&gt;
          &lt;jobType&gt;ADMIN&lt;/jobType&gt;
          &lt;wage&gt;18.0&lt;/wage&gt;
      &lt;/records&gt;
      &lt;records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="employee"&gt;
          &lt;id&gt;3&lt;/id&gt;
          &lt;name&gt;Jenny&lt;/name&gt;
          &lt;age&gt;19&lt;/age&gt;
          &lt;TFN&gt;1231432&lt;/TFN&gt;
          &lt;contact&gt;1239873&lt;/contact&gt;
          &lt;jobType&gt;WAITRESS&lt;/jobType&gt;
          &lt;wage&gt;15.0&lt;/wage&gt;
      &lt;/records&gt;
      &lt;employees&gt;
          &lt;id&gt;1&lt;/id&gt;
          &lt;name&gt;Danial&lt;/name&gt;
          &lt;age&gt;20&lt;/age&gt;
          &lt;TFN&gt;1231231&lt;/TFN&gt;
          &lt;contact&gt;12314123&lt;/contact&gt;
          &lt;jobType&gt;WAITER&lt;/jobType&gt;
          &lt;wage&gt;12.0&lt;/wage&gt;
      &lt;/employees&gt;
      &lt;employees&gt;
          &lt;id&gt;2&lt;/id&gt;
          &lt;name&gt;Andrew&lt;/name&gt;
          &lt;age&gt;21&lt;/age&gt;
          &lt;TFN&gt;1231254&lt;/TFN&gt;
          &lt;contact&gt;123677&lt;/contact&gt;
          &lt;jobType&gt;ADMIN&lt;/jobType&gt;
          &lt;wage&gt;18.0&lt;/wage&gt;
      &lt;/employees&gt;
      &lt;employees&gt;
          &lt;id&gt;3&lt;/id&gt;
          &lt;name&gt;Jenny&lt;/name&gt;
          &lt;age&gt;19&lt;/age&gt;
          &lt;TFN&gt;1231432&lt;/TFN&gt;
          &lt;contact&gt;1239873&lt;/contact&gt;
          &lt;jobType&gt;WAITRESS&lt;/jobType&gt;
          &lt;wage&gt;15.0&lt;/wage&gt;
      &lt;/employees&gt;
  &lt;/staffs&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>anyways after using jaxb my output is the above.
  is this normal?? why is it repeating the inputs?
  Records holds the LinkedList and Employees extends Records</p>
  
  <p>if there's away to prevent this would be keen to hear</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>import javax.xml.bind.annotation.*;
  
  @XmlRootElement(name = "staffs")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Employees extends Records
  {
    @XmlElement(type = Employee.class)
   public LinkedList&lt;Record&gt; getEmployees()
   {
    return super.getRecords();
   }
  }
  
  
  //////////////////////Employee class/////////////////
  import javax.xml.bind.annotation.*;
  @XmlRootElement(name = "staff")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Employee extends Record
  {
  }</code></pre>
  </div>
  </div>
  </p>