title: Missing some value in Unmarshal XML via JAXB
body: <p>I had a XML string and i want to unmarshal into Java Bean using JAXB API.<br>
  Below is XML :  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;ns0:TEST_REQ xmlns:ns0="http://Test.com"&gt;
      &lt;keys&gt;
         &lt;item&gt;
            &lt;key&gt;MyKey1&lt;/key&gt;     
         &lt;/item&gt;
         &lt;item&gt;
            &lt;key&gt;MyKey2&lt;/key&gt;      
         &lt;/item&gt;
      &lt;/keys&gt;
      &lt;root&gt;
        &lt;messageid&gt;000000123&lt;messageid/&gt;
        &lt;statusmessage&gt;Successfully Done.&lt;/statusmessage&gt;
        &lt;statuscode&gt;1&lt;/statuscode&gt;
      &lt;/root&gt;
  &lt;/ns0:TEST_REQ&gt;  
  </code></pre>
  
  <p>I want unmarshal this XML to below Java Bean :  </p>
  
  <pre><code>@XmlRootElement(name = "TEST_REQ", namespace = "http://Test.com")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class ResponseKeysBean {
  
      @XmlElement(name="messageid")
      private String messageId;
  
      @XmlElement(name="statuscode")
      private Integer statusCode;
  
      @XmlElement(name="statusmessage")
      private String statusMessage;
  
      @XmlElement(name="key")
      private String key;
  
      @XmlElementWrapper(name="keys")
      @XmlElement(name="item")
      private List&lt;ResponseKeysBean&gt; keysList;
  
      //Getter and Setter method
  }  
  </code></pre>
  
  <p>I am Unmarshal this XML using below code :  </p>
  
  <pre><code>JAXBContext jaxbContext = JAXBContext.newInstance(ResponseKeysBean.class);
  Unmarshaller um = jaxbContext.createUnmarshaller();
  ResponseKeysBean keyObj = (ResponseKeysBean) um.unmarshal(new StringReader(xmlStr));  
  </code></pre>
  
  <p>When i unmarshal above XML i got the key list in <code>keysList</code> object but i am not getting other parameter in my object like <code>messageId</code> or other which are under <code>&lt;root&gt;</code> element.<br>
  How can i get those value in my bean variable.  </p>
  
  <p>Please help me to resolve this.</p>