title: How to read xml from web response?
body: <p>I am trying to read xml from web response and get selected nodes (i.e link) from it.  This is what  I have so far and its showing <strong>"System.Xml.XmlElement"</strong>, as an output. </p>
  
  <p>WRequest method, sends a POST request to url using web request and returns a string xml response such as:</p>
  
  <pre><code>&lt;status&gt; &lt;code&gt;201&lt;/code&gt;
  &lt;resources_created&gt;
  &lt;link href="####" rel="############" title="####" /&gt; 
  &lt;/resources_created&gt; 
  &lt;warnings&gt; &lt;warning&gt;display_date is read-only&lt;/warning&gt; &lt;/warnings&gt; 
  &lt;/status&gt;
  </code></pre>
  
  <p>ReadUri2 method</p>
  
  <pre><code>public static string readUri2()
      {
          string uri = "";
          string xml = WRequest();
  
          XmlDocument xmlDoc = new XmlDocument();
          xmlDoc.LoadXml(xml);
  
          XmlNode elem = xmlDoc.DocumentElement.FirstChild;
          uri = elem.ToString();
          return uri;
  
          }
  </code></pre>
  
  <p>PageLoad calls</p>
  
  <pre><code> protected void Page_Load(object sender, EventArgs e)
      {
          string uri = readUri2();
          Label1.Text = Server.HtmlEncode(uri);
  
      }
  </code></pre>
  
  <p>Any help would be very much appreciated.  Many thanks.</p>