title: JAXB XML Unmarshaller error. Getting null value for all Object
body: <p>I get the following error when I tried to parse the below string</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;CC5Response&gt;
    &lt;OrderId&gt;ORDER-17305KXSH11966&lt;/OrderId&gt;
    &lt;GroupId&gt;ORDER-173053333KXSH11966&lt;/GroupId&gt;
    &lt;Response&gt;Approved&lt;/Response&gt;
    &lt;AuthCode&gt;0293333584&lt;/AuthCode&gt;
    &lt;HostRefNum&gt;73051033333011833&lt;/HostRefNum&gt;
    &lt;ProcReturnCode&gt;00&lt;/ProcReturnCode&gt;
    &lt;TransId&gt;17305K33245XSH11968&lt;/TransId&gt;
    &lt;ErrMsg&gt;&lt;/ErrMsg&gt;
    &lt;Extra&gt;
      &lt;SETTLEID&gt;1&lt;/SETTLEID&gt;
      &lt;TRXDATE&gt;20171101 10:23:18&lt;/TRXDATE&gt;
      &lt;ERRORCODE&gt;&lt;/ERRORCODE&gt;
      &lt;CARDBRAND&gt;VISA&lt;/CARDBRAND&gt;
      &lt;CARDISSUER&gt;CDM&lt;/CARDISSUER&gt;
      &lt;NUMCODE&gt;00&lt;/NUMCODE&gt;
    &lt;/Extra&gt;
  &lt;/CC5Response&gt;
  </code></pre>
  
  <p>Code snippet for Unmarshalling is given below</p>
  
  <pre><code>JAXBContext jaxbContext = JAXBContext.newInstance(CC5Response.class);
  XMLInputFactory xif = XMLInputFactory.newFactory();
  Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
  XMLStreamReader xsr = xif.createXMLStreamReader(IOUtils.toInputStream(sb.toString(), "UTF-8"));
  Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
  CC5Response res = (CC5Response) jaxbUnmarshaller.unmarshal(xsr);
  System.out.println("*************"+res.toString());
  </code></pre>
  
  <p>bean class is given below</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlType
  @XmlRootElement(name = "CC5Response")
  public class CC5Response {
      @XmlAttribute
      private String ProcReturnCode;
      // @XmlAttribute
      // private Extra Extra;
      /*public Extra getExtra() {
          return Extra;
      }
  
      public void setExtra(Extra extra) {
          Extra = extra;
      }*/
  
      @XmlAttribute
      private String AuthCode;
      @XmlAttribute
      private String OrderId;
      @XmlAttribute
      private String TransId;
      @XmlAttribute
      private String ErrMsg;
      @XmlAttribute
      private String Response;
      @XmlAttribute
      private String HostRefNum;
      @XmlAttribute
      private String GroupId;
  </code></pre>
  
  <p>I always get a plain object with null values.</p>