title: Unmarshalling XML using JAXB
body: <p>I went through almost all questions related to this topic here. But was not able to get a proper solution.</p>
  
  <p><strong>My issue is as follows:</strong></p>
  
  <p>I created a simple program to unmarshall an xml file for which i had a xsd. I was able to do that successfully. But if i am getting an xml without xsd, how can I get my attributes from that, if the xml looks something like this : </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;items&gt;
    &lt;item&gt;
      &lt;code&gt;12000&lt;/code&gt;
      &lt;name&gt;Samsung  620&lt;/name&gt;
      &lt;price&gt;9999&lt;/price&gt;
    &lt;/item&gt;
    &lt;item&gt;
      &lt;code&gt;15000&lt;/code&gt;
      &lt;name&gt;NOKIA&lt;/name&gt;
      &lt;price&gt;19999&lt;/price&gt;
    &lt;/item&gt;
    &lt;item&gt;
      &lt;code&gt;18000&lt;/code&gt;
      &lt;name&gt;HTC 620&lt;/name&gt;
      &lt;price&gt;29999&lt;/price&gt;
    &lt;/item&gt;
  &lt;/items&gt; 
  </code></pre>
  
  <p>Here I don't have an xsd to generate my classes. How can i proceed? Kindly help me.</p>
  
  <p>Thank You</p>