title: Setting Namespace Attributes on an Element
body: <p>I'm trying to create an XML document in Java that contains the following Element:</p>
  
  <pre><code>&lt;project xmlns="http://www.imsglobal.org/xsd/ims_qtiasiv1p2" 
           xmlns:acme="http://www.acme.com/schemas"
           color="blue"&gt;
  </code></pre>
  
  <p>I know how to create the project Node.  I also know how to set the color attribute using </p>
  
  <p><code>element.setAttribute("color", 
                               "blue")</code></p>
  
  <p>Do I set the xmlns and xmlns:acme attributes the same way using setAttribute() or do I do it in some special way since they are namespace attributes?</p>