windows phone 7 - Deserialise XML response from server -
i want deserialise object. saw following code in msdn.com: private void deserializeobject(string filename) { debug.writeline("reading xmlreader"); // create instance of xmlserializer specifying type , namespace. xmlserializer serializer = new xmlserializer(typeof(user)); // filestream needed read xml document. filestream fs = new filestream(filename, filemode.open); xmlreader reader = xmlreader.create(filename); // declare object variable of type deserialized. user i; // use deserialize method restore object's state. = (user)serializer.deserialize(reader); fs.close(); // write out properties of object. debug.writeline( i.field1+ "\t" + i.field2+ "\t" + i.field3+ "\t" + i.field4); } however, don't want deserialise file, rather xml stream server response, corresponding code shown here: httpwebrequest webrequest = (httpwebrequest)asynchronousresult.asy