title: How to override the default name for in JAXB using a external binding file?
body: <p>I have an element that looks something like this.</p>
  
  <pre><code> &lt;xsd:element name="container"&gt;
      &lt;xsd:complexType&gt;
        &lt;xsd:choice minOccurs="0" maxOccurs="unbounded"&gt;
          &lt;xsd:element ref="navmap"/&gt;
          &lt;xsd:element ref="keymap" /&gt;
          &lt;xsd:element ref="container" /&gt;
          &lt;xsd:element ref="ad" /&gt;
          &lt;xsd:element ref="button" /&gt;
          &lt;xsd:element ref="checkbox" /&gt;        
        &lt;/xsd:choice&gt;
      &lt;/xsd:complexType&gt;
    &lt;/xsd:element&gt;
  </code></pre>
  
  <p>Here is the default code that gets created for this element.</p>
  
  <pre><code>@XmlElements({
      @XmlElement(name = "navmap", type = Navmap.class),
      @XmlElement(name = "keymap", type = Keymap.class),
      @XmlElement(name = "container", type = Container.class),
      @XmlElement(name = "ad", type = Ad.class),
      @XmlElement(name = "button", type = Button.class),
      @XmlElement(name = "checkbox", type = Checkbox.class),
  })
  protected List&lt;Object&gt; navmapOrKeymapOrContainer;
  </code></pre>
  
  <p>My question is <strong>What do I need to put in my</strong> <code>.xjb</code> <strong>bindings file to change the default generated name from</strong> <code>navmapOrKeymapOrContainer</code> <strong>to something else like</strong> <code>children</code><strong>?</strong></p>