title: Prevent JDOM2 from creating xmlns=""
body: <p>I try to add new <code>&lt;class&gt;</code> elements to a persistence.xml file with JDOM2.</p>
  
  <pre><code>persistenceUnitEl.add(new Element("class").addContent(className));
  </code></pre>
  
  <p>The problem is that jdom2 always adds <code>xmlns=""</code> to the <code>&lt;class&gt;</code> elements.</p>
  
  <p>How can i prevent this?</p>
  
  <p><code>removeAttribute("xmlns")</code> does not work and <code>removeNameSpace(el.getNameSpace())</code> also does not work.</p>