title: Reading Http WebResponse
body: <p>I get response from an api when i use it to send the sms using http request now i get some reponse when i send the sms . I need to parse "MessageID" from the reponse . </p>
  
  <p>I am using following code to read the response</p>
  
  <pre><code>   HttpWebResponse webresponse = (HttpWebResponse)myReq.GetResponse();
  
  
  
          Encoding enc = System.Text.Encoding.GetEncoding(1252);
          StreamReader loResponseStream = new
            StreamReader(webresponse.GetResponseStream(), enc);
  
          string Response = loResponseStream.ReadToEnd();
  </code></pre>
  
  <p>What i recieve in string Response is following  </p>
  
  <pre><code>&lt;rsp stat=\"ok\"&gt;\n&lt;success msg=\"accepted\" transactionid=\"fe417b1b3dd5f68cc99c5df182fe606a\" messageid=\"332b21a2813900a7b81af1635aa1a8d5\"/&gt;\n&lt;/rsp&gt;
  </code></pre>
  
  <p>How can parse value of transactionid and message id from this response . Please let me know . Thank You</p>