I want to convert string to XML file.
I send XML data to another sever and get the respose.
So, I wrote this code.
rsp = req.GetResponse();
using (HttpWebResponse response = req.GetResponse() as HttpWebResponse)
{
StreamReader reader = new StreamReader(response.GetResponseStream());
string Response = reader.ReadToEnd();
// This is respons andI want to read it
}
How to read the string Response? it is in XML format
If the
Responsestring corresponds to Xml. You can use this piece of code to convert / save it to aXmlfile usingXDocumentclass.