I am using this code to load xml into a doc from a url:
var doc = new XmlDocument();
doc.Load(url);
but this fails due to poorly formed xml.
My question is, how do I obtain the xml being returned so that I can debug the cause?
This is not a duplicate. It is completely differen to the duplicate answer given. I need to get the raw data returned from the url but cannot because it is not correct xml.