title: Adding namespace prefix XML String using XML DOM
body: <p>I want to add namespace prefix to all the elements in the XML String using XML DOM.
  E.g.
  My String is coming in this way: </p>
  
  <pre><code>&lt;root&gt; 
         &lt;operation&gt;test string&lt;/operation&gt; 
         &lt;data&gt; 
                &lt;parameter&gt; 
                       &lt;name&gt;test string&lt;/name&gt; 
                       &lt;value&gt;test string&lt;/value&gt; 
                   &lt;/parameter&gt; 
                &lt;parameter&gt; 
                       &lt;name&gt;test string&lt;/name&gt; 
                       &lt;value&gt;test string&lt;/value&gt; 
                   &lt;/parameter&gt; 
                &lt;parameter&gt; 
                       &lt;name&gt;test string&lt;/name&gt; 
                       &lt;value&gt;test string&lt;/value&gt; 
                   &lt;/parameter&gt; 
            &lt;/data&gt; 
     &lt;/root&gt;
  </code></pre>
  
  <p>And I want a output XML as:</p>
  
  <pre><code>&lt;ns0:root xmlns:ns0 = "http://www.tibco.com/schemas/BWStatistics-hawk/Schema.xsd2"&gt; 
         &lt;ns0:operation&gt;test string&lt;/ns0:operation&gt; 
         &lt;ns0:data&gt; 
                &lt;ns0:parameter&gt; 
                       &lt;ns0:name&gt;test string&lt;/ns0:name&gt; 
                       &lt;ns0:value&gt;test string&lt;/ns0:value&gt; 
                   &lt;/ns0:parameter&gt; 
                &lt;ns0:parameter&gt; 
                       &lt;ns0:name&gt;test string&lt;/ns0:ns0:name&gt; 
                       &lt;ns0:value&gt;test string&lt;/ns0:value&gt; 
                   &lt;/ns0:parameter&gt; 
                &lt;ns0:parameter&gt; 
                       &lt;ns0:name&gt;test string&lt;/ns0:name&gt; 
                       &lt;ns0:value&gt;test string&lt;/ns0:value&gt; 
                   &lt;/ns0:parameter&gt; 
            &lt;/ns0:data&gt; 
     &lt;/ns0:root&gt;
  </code></pre>
  
  <p>How can i achieve this optimally in Java??</p>