title: Adding XML attribute to an element
body: <p>Looking to add an attribute to an existing xml element <code>&lt;D_COMMS&gt;</code>, not replace the existing attribute just add it to the beginning.</p>
  
  <p>This is the XML</p>
  
  <pre><code>&lt;OUTPUT version="2.0"&gt;
   &lt;RESPONSE&gt;
    &lt;DATA id="17fb13cca6c5463597fdf340c044069f"&gt;
      &lt;![CDATA[&lt;ID&gt; jdfkldklfjdkl&lt;/ID&gt;&lt;D_COMMS&gt;ON this date...&lt;/D_COMMS&gt;]]&gt;
    &lt;/DATA&gt;
   &lt;/RESPONSE&gt;
  </code></pre>
  
  <p></p>
  
  <p>This XML is the result of a HTTPWebResponse so this is what the XMl looks like when it comes back to me and I need to add a value to the D_COMMS element and send it back.Tried something like this to look for the descendant DATA and add it that way.</p>
  
  <pre><code>var addelement = doc.Descendants("DATA").First();
  addelement.Add(XElement("D_COMMS","On this date we said"));
  </code></pre>