title: Java add header attribute to other node
body: <p>I would like to extract attribute from my  and duplicate it to all other node of level 1. </p>
  
  <p>My header look like :</p>
  
  <pre><code>&lt;header xmlns="aa" xmlns:ds=bb" xmlns:xsi="cc" authenticate="true"&gt;
  </code></pre>
  
  <p>When I got my  and new one strat called DataEncryptionInfo who is</p>
  
  <pre><code>&lt;DataEncryptionInfo authenticate="true"&gt;
  </code></pre>
  
  <p>And I need to have </p>
  
  <pre><code>&lt;DataEncryptionInfo xmlns="aa" xmlns:ds="bb" xmlns:xsi="cc" authenticate="true"&gt;
  </code></pre>
  
  <p>When I cast it to Element and setAttribute, new attribute are add after the authenticate, does I need to remove it, add news and add my authenticate at the end ? </p>