title: JibX: how to map a class and avoid it being outputed as XML node
body: <p>I am using <a href="http://jibx.sourceforge.net" rel="nofollow noreferrer">JibX</a> as a Java Object to XML Binding tool.</p>
  
  <p>With it, I want to have the following output:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;FEAPService&gt;
      &lt;Request&gt;
          &lt;Function&gt;aaa&lt;/Function&gt;
          &lt;SubFunction&gt;bbb&lt;/SubFunction&gt;
          &lt;Operation&gt;ccc&lt;/Operation&gt;
      &lt;/Request&gt;
  &lt;/FEAPService&gt;
  </code></pre>
  
  <p>But I'm getting this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;FEAPService&gt;
      &lt;Request&gt;
          &lt;baseForm&gt; &lt;!-- I DO NOT WANT THIS baseForm TAG --&gt;
              &lt;Function&gt;aaa&lt;/Function&gt;
              &lt;SubFunction&gt;bbb&lt;/SubFunction&gt;
              &lt;Operation&gt;ccc&lt;/Operation&gt;
          &lt;/baseForm&gt;
      &lt;/Request&gt;
  &lt;/FEAPService&gt;
  </code></pre>
  
  <p>Here's the JibX binding file:</p>
  
  <pre><code>&lt;binding name="requestBinding_com_struts_form_SpecificForm"&gt;
      &lt;mapping name="baseForm" class="com.struts.form.BaseForm"&gt;
          &lt;value name="Function" field="function" /&gt;
          &lt;value name="SubFunction" field="subFunction" /&gt;
          &lt;value name="Operation" field="operation" /&gt;
      &lt;/mapping&gt;    
      &lt;mapping name="FEAPService" class="com.struts.form.SpecificForm"
          extends="com.struts.form.BaseForm"&gt;
          &lt;structure name="Request"&gt;
              &lt;structure map-as="com.struts.form.BaseForm" /&gt;
          &lt;/structure&gt;
      &lt;/mapping&gt;
  &lt;/binding&gt;
  </code></pre>
  
  <p>I guess it might be achieved by implementing my own Marshaller, but I'm not sure if that's the easiest way.</p>