title: JAXB : XmlElementWrapper nested nodes
body: <p>I want to Generate XML that look like this : </p>
  
  <pre><code>    &lt;mainNode&gt;   
         &lt;node1&gt;&lt;/node1&gt; 
         &lt;node2&gt;&lt;/node2&gt; 
      &lt;/mainNode&gt;
     &lt;mainNode2&gt;&lt;/mainNode2&gt; 
  </code></pre>
  
  <p>and this is how i generate the mainNode1 , mainNode2 and node1 in my code: </p>
  
  <pre><code>   @XmlElementWrapper(name = "mainNode")
          @XmlElement(name = "node1")
          public List&lt;String&gt; getValue() {
              return value;
          }
  
     @XmlElement(name = "mainNode2")
     public String getValue2() {
     return value2;
     }
  </code></pre>
  
  <p>how i could add node2 to the mainNode1 ? </p>