title: Remove ns2 prefix while JaxB marshalling an Element without @XmlRootElement annotation
body: <p>I have an object that I want to marshall but the schema does not have the @XmlRootElement annotation.</p>
  
  <pre><code>@XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "")
  public static class Foo
  {
      @XmlAttribute(name = "test1")
      public final static String TEST_1 = "Foo";
  
      @XmlElement(name = "Element1", required = true)
      protected String element1;
  
      @XmlElement(name = "Element2", required = true)
      protected String element2;
  }
  </code></pre>
  
  <p>I marshalled the object by specifying a JaxBElement while marshalling</p>
  
  <pre><code>QName qName = new QName("", "Foo");
  jaxb2Marshaller.marshal(new JAXBElement(qName, Foo.class, fooObj), new StreamResult(baos));
  </code></pre>
  
  <p>This results in the following XML after marshalling</p>
  
  <pre><code>&lt;Foo xmlns:ns2="http://Foo/bar" test1="Foo"&gt;
      &lt;ns2:Element1&gt;000000013&lt;/ns2:Element1&gt;
      &lt;ns2:Element2&gt;12345678900874357&lt;/ns2:Element2&gt;
  &lt;/Foo&gt;
  </code></pre>
  
  <p>For my usecase I would like to marhsall this object without the ns2 prefix so that the XML would look like </p>
  
  <pre><code>&lt;Foo xmlns="http://Foo/bar" test1="Foo"&gt;
      &lt;Element1&gt;000000013&lt;/Element1&gt;
      &lt;Element2&gt;12345678900874357&lt;/Element2&gt;
  &lt;/Foo&gt;
  </code></pre>
  
  <p>How can I marshall this object without the prefix? </p>
  
  <p>Thanks in Advance.</p>