title: XML Request Jaxb
body: <p>I am trying to make a Java object out of an xml request using Jaxb but my limited knowledge of jaxb is holding me back. I have done this before but it was with simple XML documents only using basic Elements such as </p>
  
  <pre><code>&lt;RootElement&gt;
     &lt;Bookname&gt;Moby Dick&lt;/Bookname&gt;
     &lt;BookCode&gt;1&lt;/BookCode&gt;
  &lt;/RootElement&gt;
  </code></pre>
  
  <p>But now I have a bit more complicated of an xml file and any help getting me started on how to create this object would be greatly appreciated. I think I will have to use some sort of list, along with @Xmlattribute, but am just confused at the moment. Any help would be greatly appreciated! I hope I am not just overthinking this. The sample XML is found below:</p>
  
  <pre><code> &lt;?xml version="1.0"?&gt;
   &lt;CRMMessage language="en_US" currency="USD" &gt;
  &lt;RequestSource name="Testsource" version="2" /&gt;
  &lt;RequestCode&gt;GetTest&lt;/RequestCode&gt;
  &lt;DataSet&gt;
      &lt;DataSetColumns&gt;
          &lt;DSColumn name="Column1" /&gt;
          &lt;DSColumn name="Column2" /&gt;
      &lt;/DataSetColumns&gt;
      &lt;Rows&gt;
          &lt;Row&gt;
              &lt;Col&gt;John&lt;/Col&gt;
              &lt;Col&gt;Doe&lt;/Col&gt;
          &lt;/Row&gt;
      &lt;/Rows&gt;
  &lt;/DataSet&gt;
  &lt;/CRMMessage&gt;
  </code></pre>