title: ignore root element in JAXB
body: <p>I'm trying to parse an xml file using JAXB.
  My problem is that I need to skip the root node, If I delete it from the xml file I get what I need, otherwise - I get an empty object.</p>
  
  <p>I'll give a simplified xml and my code (It behaves the same way):</p>
  
  <p>XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Root&gt;
  &lt;!--  &lt;Root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="Office.xsd"&gt;
  --&gt;
      &lt;Office&gt;
          &lt;Employees&gt;
              &lt;Employee&gt;
                  &lt;name&gt;George&lt;/name&gt;
                  &lt;rank&gt;3&lt;/rank&gt;
              &lt;/Employee&gt;
              &lt;Employee&gt;
                  &lt;name&gt;Michael&lt;/name&gt;
                  &lt;rank&gt;5&lt;/rank&gt;
              &lt;/Employee&gt;
              &lt;Employee&gt;
                  &lt;name&gt;Jeff&lt;/name&gt;
                  &lt;rank&gt;1&lt;/rank&gt;
              &lt;/Employee&gt;
              &lt;Employee&gt;
                  &lt;name&gt;Todd&lt;/name&gt;
                  &lt;rank&gt;7&lt;/rank&gt;
              &lt;/Employee&gt;
              &lt;Employee&gt;
                  &lt;name&gt;Jessica&lt;/name&gt;
                  &lt;rank&gt;5&lt;/rank&gt;
              &lt;/Employee&gt;
          &lt;/Employees&gt;
      &lt;/Office&gt;
  &lt;/Root&gt;
  </code></pre>
  
  <p>Office class:</p>
  
  <pre><code>import javax.xml.bind.annotation.*;
  import java.util.Vector;
  
  @XmlRootElement
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Office {
  
     @XmlElementWrapper(name = "Employees")
     @XmlElement(name = "Employee")
     private Vector&lt;Employee&gt; employees;
  
  }
  </code></pre>
  
  <p>Employee class: </p>
  
  <pre><code>import javax.xml.bind.annotation.XmlElement;
  import javax.xml.bind.annotation.XmlAccessorType;
  import javax.xml.bind.annotation.XmlAccessType;
  
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Employee {
  
     @XmlElement(name="name")
     private String name; 
     @XmlElement(name="rank")
     private int rank;
  
  
     public void promote() {
        rank++;
     }
  
  }
  </code></pre>
  
  <p>Driver: </p>
  
  <pre><code>import javax.xml.stream.*; 
  import javax.xml.bind.JAXBContext;
  import javax.xml.bind.JAXBException;
  import javax.xml.bind.Unmarshaller;
  import javax.xml.bind.Marshaller;
  
  import java.io.FileReader;
  public class Driver {
  
       public static void main (String[] args) {
          parseOffice();
  
       }
  
       public static void parseOffice() {
          try {
  
            XMLInputFactory f = XMLInputFactory.newInstance();
            XMLStreamReader reader = f.createXMLStreamReader(new FileReader("Office.xml"));
  
              JAXBContext context = JAXBContext.newInstance(Office.class);
              Unmarshaller unmarshaller = context.createUnmarshaller();
              Office office = unmarshaller.unmarshal(reader, Office.class).getValue();
  
              Marshaller marshaller = context.createMarshaller();
            marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
            marshaller.marshal(office, System.out);
  
           } 
           catch (Exception e) {
               e.printStackTrace();
           }
        }
  }
  </code></pre>