title: JAXB Unmarshalling issues with XML attributes
body: <p>I am having an issue unmarshalling with JAXB for an XML file.  There is an attribute on some of the xml elements called "display_value" which I need to obtain.  Here is a small example of the XML file:</p>
  
  <pre><code>&lt;unload&gt;
    &lt;change_request&gt;
      &lt;active&gt;true&lt;/active&gt;
      &lt;approval&gt;not requested&lt;/approval&gt;
      &lt;assigned_to display_value=""/&gt;
      &lt;alt_poc display_value="Tom Ford"&gt;056468745677484657&lt;/alt_poc&gt;
      &lt;poc display_value="Matt Ryan"&gt;56465148754878&lt;/poc&gt;
     &lt;/change_request&gt;
  &lt;/unload&gt;
  </code></pre>
  
  <p>I assume that in my ChangeRequest class I would simply annotate @XmlAttribute(name="display_value) on the fields that have the display_value that attribute, such as alt_poc but that doesn't seem to work.  Here is an example of my ChangeRequest class.</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  public class ChangeRequest{
    String active;
    String approval;
    String assigned_to;
    String alt_poc;
    String poc;
  }
  </code></pre>
  
  <p>I do have a class that contains a list of ChangeRequest objects, called ChangeRequests.  This class is simple and looks like:</p>
  
  <pre><code>@XmlRootElement(name="unload")
  public class ChangeRequests{
  ArrayList&lt;ChangeRequest&gt; changeRequestList;
  
  @XmlElement(name="change_request")
  public ArrayList&lt;ChangeRequest&gt; getRecords(){
    return changeRequestList;
  }
  </code></pre>
  
  <p>Finally I will show you the JAXB code where I do all of this</p>
  
  <pre><code>URL url = new URL("wwww.somethingInteresting.com/syz.xml");
  try {
     JAXBConext jc = JAXBContext.newInstance(ChangeRequest.class, ChangeRequests.class);
     Unmarshaller un  = jc.createUnmarshaller();
  
     return (ChangeRequests) un.unmarshal(url);
  } catch(JAXBException e){
      thow new RunTimeException(e);
  }
  </code></pre>
  
  <p>Currently, all the code works, however I cannot get the display_value when I need it.  Instead of the display_value I am getting the long number like 65484435487.  </p>
  
  <p>Any help anyone can provide would be great.  Thank you!</p>