title: How to change the value of an attribute in an XML document?
body: <p>I have an XML document below and there is a tag called <code>&lt;FormData&gt;</code> in side this tag it as an attribute called <strong>FormId</strong>="d617a5e8-b49b-4640-9734-bc7a2bf05691"</p>
  
  <p>I would like to change that value in C# code?</p>
  
  <pre><code>    XmlDocument xmlDoc = new XmlDocument();
      xmlDoc.Load(MapPath(tempFolderPathAlt + "dvforms" + "\\XmlDataTemplate.xml"));
      //Change value of FormID
      xmlDoc.Save(tempFolderPath + "data.xml");
  </code></pre>
  
  <p>Be is my XML document:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;FormData Platform="Android" PlatformVersion="100" Version="966" DataVersion="1" Description="Investec - Res" FormId="d617a5e8-b49b-4640-9734-bc7a2bf05691" FileId="e6202ba2-3658-4d8e-836a-2eb4902d441d" EncryptionVerification="" CreatedBy="Bob" EditedBy="Bob"&gt;
  &lt;FieldData&gt;
  &lt;request_details_export_template Mod="20010101010101" IncludeInPDFExport="Yes"&gt;&lt;/request_details_export_template&gt;
  &lt;request_details_reason_for_valuatio Mod="20010101010101" IncludeInPDFExport="Yes"&gt;&lt;/request_details_reason_for_valuatio&gt;
  &lt;/FieldData&gt;
  &lt;Photos Mod="20010101010101"/&gt;
  &lt;VoiceNotes/&gt;
  &lt;Drawings Mod="20010101010101"/&gt;
  &lt;FieldNotes/&gt;
  &lt;/FormData&gt;
  </code></pre>