In general, this is how I deserialize the XML file:
string location = "C:\\test.xml";
XmlObjectClass member_data = new XmlObjectClass();
using (Stream XmlStream = new FileStream(location,FileMode.Open))
{
data = (XmlObjectClass)serializer.Deserialize(XmlStream);
}
This works when I deserialize the XML file, but what if I want to deserialize the XML that is returned by the web request (i.e. by going to the URL)?
source
share