title: Extracting value from key in xml document using c#
body: <p>I have a XML file as follows</p>
  
  <pre><code> &lt;configuration&gt;
    &lt;appSettings&gt;
     &lt;add key="username1" value="password1"/&gt;
     &lt;add key="username2" value="password2"/&gt;
    &lt;/appsettings&gt;
   &lt;/configuration&gt;
  </code></pre>
  
  <p>I want to read the text in value field when i pass the key. How to do this is c#.</p>
  
  <p>Thanks in advance.</p>