title: Modify values in xml
body: <p>I have an xml file in following format :</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;server xmlns="urn:jboss:domain:1.2"&gt;
    &lt;extensions&gt;
      &lt;extension module="org.jboss.as.clustering.infinispan" /&gt;
      &lt;extension module="org.jboss.as.cmp" /&gt;
      &lt;extension module="org.jboss.as.ejb3" /&gt;
    &lt;/extensions&gt;
      &lt;appSettings&gt;
        &lt;property name="EXTERNAL_FILESERVER" value="/site/bugbase.adobe.com/files/" /&gt;
        &lt;property name="FTP_USER" value="password" /&gt;
        &lt;property name="FTP_SERVER" value="sjshare.corp.adobe.com"/&gt;
        &lt;property name="FTP_PASSWORD" value="password" /&gt;
        &lt;property name="FTP_READ_USER" value="password" /&gt;
        &lt;property name="FTP_READ_PASS" value="password" /&gt;
        &lt;property name="WORKFLOW_NOTIFICATION_TEMPLATE" value="util/workflow_notification_template.html"/&gt;
      &lt;/appSettings&gt;
  &lt;/server&gt;
  </code></pre>
  
  <p>I wanted to change password values for "FTP_USER" and "FTP_READ_USER".</p>
  
  <p>Code i tried so far :</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
              string path = @"C:\Users\karansha\Desktop\config file 1.xml";
              doc.Load(path);
              doc.SelectNodes("/appSettings/property").Item(1).Attributes["value"].Value = "newpassword";
              doc.SelectNodes("/appSettings/property").Item(2).Attributes["value"].Value = "new_password";
  </code></pre>