title: JAXB Element mapping
body: <p>I have an xml similar to:</p>
  
  <pre><code>    &lt;alpha&gt;
              &lt;beta&gt;
                      &lt;theta&gt;abcd&lt;/theta&gt;
              &lt;/beta&gt;
      &lt;/alpha&gt;
  </code></pre>
  
  <p>I want to map the <code>theta</code> element to a property <code>thetaValue</code> in the class MyBean</p>
  
  <pre><code>@XmlRootElement(name = "alpha")
  public class MyBean {
      private String thetaValue;
  
      public String getThetaValue() {
          return this.thetaValue;
      }
  
      public void setThetaValue(String thetaValue) {
          this.thetaValue= thetaValue;
      }
  }
  </code></pre>
  
  <p>is there any way I can do this? I am using jaxb that comes with JDK 1.6</p>