title: How to read key value from XML in C#
body: <p>I have got below xml format file called <code>"ResourceData.xml"</code>.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;root&gt;
    &lt;key name="customPageTitle"&gt;
      &lt;value&gt;Publish Resources to Custom Page&lt;/value&gt;
    &lt;/key&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Now I want to write a function which take the key <code>"name"</code> as input and will return its value element data, in above case it will return <code>"Publish Resources to Custom Page"</code> if we pass the key name <code>"customPageTitle"</code>, I think will open the XML file and then it will read.</p>
  
  <p>Please suggest!!</p>