title: How can i remove namespace from the generated JAXB File?
body: <p>Here is my code:</p>
  
  <p>xsdFile:
  </p>
  
  <pre><code>&lt;complexType name="Player"&gt;
      &lt;sequence&gt;
          &lt;element name="Login" type="string"&gt;&lt;/element&gt;
          &lt;element name="Passwd" type="string"&gt;&lt;/element&gt;
      &lt;/sequence&gt;
  &lt;/complexType&gt;
  
  &lt;element name="Player" type="tns:Player"&gt;&lt;/element&gt;
  </code></pre>
  
  <p></p>
  
  <p>Build.xml:  </p>
  
  <pre><code>    &lt;exec executable="${javahome}/bin/xjc"  &gt;
  
          &lt;arg value="-extension" /&gt;
          &lt;arg value="-b" /&gt;
          &lt;arg value="binding.xml" /&gt;
          &lt;arg value="-d" /&gt;
          &lt;arg value="${sources}" /&gt;
          &lt;arg value="-p" /&gt;
          &lt;arg value="metier" /&gt;
          &lt;arg value="Player.xsd" /&gt;
  
      &lt;/exec&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>binding.xml:</p>
  
  <pre><code>&lt;jxb:bindings 
  xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
  xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
  jxb:extensionBindingPrefixes="xjc" elementFormDefault="qualified" attributeFormDefault="unqualified"
  version="2.1"&gt;
  
  &lt;jxb:globalBindings&gt;
      &lt;xjc:simple /&gt;
      &lt;xjc:serializable/&gt;
  &lt;/jxb:globalBindings&gt;
  </code></pre>
  
  <p></p>
  
  <p>And finnaly:</p>
  
  <p><code>JAXBContext context = JAXBContext.newInstance(Player.class,ObjectFactory.class);
   Unmarshaller decodeur = context.createUnmarshaller();</code></p>
  
  <p>i add "xjc:simple" in order to have <strong><em>@XMLRootElement</em></strong>, but an exception is raised: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.example.org/Player"</p>
  
  <p>It didn't work correctly because i got this:@XmlRootElement(name = "Player", <strong><em>namespace = "http://www.example.org/Player"</em></strong>)</p>
  
  <p>Instead of just: @XmlRootElement(name = "Player")</p>
  
  <p>How can i remove this "namespace" ?</p>
  
  <p>Thanks</p>