title: how to remove the namespaces from the Element
body: <p>I am working with org.w3c.xml java library 
  and encountering a few difficulties performing a few tasks:</p>
  
  <ol>
  <li>I have an Element object; how can I remove namespaces from it and the predecessors?</li>
  <li><p>How can I create a Document without the namespaces? I have tried</p>
  
  <pre><code>DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
  docBuilderFactory.setNamespaceAware(false);
  DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
  Document doc = docBuilder.parse (new File("C:/Temp/XMLFiles/"+fileName+".xml"));
  </code></pre>
  
  <p>Although it looks promising, it does not really work. I am still getting the doc with namespaces.</p></li>
  <li><p>How do I create a document from an Element? </p>
  
  <pre><code>Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
  doc.adoptNode(dataDefinition);
  </code></pre>
  
  <p>where dataDefinition is an element, but it didn't work; what am I doing wrong?</p></li>
  </ol>