title: unexpected element error while unmarshalling
body: <p>I should unmarshall simple xml as belo but getting error as </p>
  
  <pre><code>Exception in thread "main" javax.xml.bind.UnmarshalException: unexpected element (uri:"http://example.com/service/response/v1", local:"WebResponse"). Expected elements are &lt;{http://example.com/service/request/v1}WebResponse&gt;
      at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:603)
  
  I tried the solutions in this site but could not solve pls help.
  </code></pre>
  
  <p>This is the xml present in response.xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes" ?&gt; 
  - &lt;WebResponse xmlns="http://example.com/service/response/v1"&gt;
  - &lt;Status&gt;
    &lt;StatusCode&gt;0&lt;/StatusCode&gt; 
    &lt;Description&gt;Transaction was successful&lt;/Description&gt; 
    &lt;/Status&gt;
    &lt;/WebResponse&gt;
  </code></pre>
  
  <p>Below is my code :</p>
  
  <p><strong>WebResponse class:</strong></p>
  
  <p>The webresponse class for storing the retrieved xml</p>
  
  <pre><code>import javax.xml.bind.annotation.*;
  
  @XmlRootElement(name="WebResponse")
  public class WebResponse {
  
      private long statusCode;
      private String description;
      @XmlElement(name= "StatusCode")
      public long getStatusCode() {
          return statusCode;
      }
      public void setStatusCode(long statusCode) {
          this.statusCode = statusCode;
      }
      @XmlElement(name= "Description")
      public String getDescription() {
          return description;
      }
      public void setDescription(String description) {
          this.description = description;
      }
  </code></pre>
  
  <p><strong>WebResponseMain class:</strong></p>
  
  <p>Tester class</p>
  
  <pre><code>import javax.xml.bind.Unmarshaller;
  import javax.xml.bind.JAXBContext;
  
  import java.io.FileReader;
  import com.example.WebResponse;
  
  
  public class WebResponseMain {
  
      public static void main(String[] args) throws Exception{
          JAXBContext context = JAXBContext.newInstance(WebResponse.class);
          Unmarshaller um = context.createUnmarshaller();
          WebResponse WR = (WebResponse) um.unmarshal(new FileReader("c:/tem/Response.XML"));
          System.out.println("StatusCode: " + WR.getStatusCode() + " Description "
                   +WR.getDescription());
  
      }
  
  }
  </code></pre>
  
  <p><strong>package-info.java:</strong></p>
  
  <pre><code>@XmlSchema(namespace = "http://example.com/service/request/v1",elementFormDefault=XmlNsForm.QUALIFIED)
  
  
  
  package com.example;
  
  import javax.xml.bind.annotation.*;
  </code></pre>
  
  <p>i used the solutions present in this site but could not solve please help</p>