S
SKG
Iam trying to read an xml file from a website and i get junk characters. But
when i open the same file in browser
everything is fine.
here is the snippet of the code
WebRequest objRequest =
WebRequest.Create("http://www.xvdabc.com/order.xml");
WebResponse objResponse = objRequest.GetResponse();
StreamReader SR = new StreamReader(objResponse.GetResponseStream());
string strContent = oSR.ReadToEnd();
strContent has junk characters
TIA
when i open the same file in browser
everything is fine.
here is the snippet of the code
WebRequest objRequest =
WebRequest.Create("http://www.xvdabc.com/order.xml");
WebResponse objResponse = objRequest.GetResponse();
StreamReader SR = new StreamReader(objResponse.GetResponseStream());
string strContent = oSR.ReadToEnd();
strContent has junk characters
TIA