I would like to retrieve this data inside of a class in c# based on a URL address "http://sporing.bring.no/sporing.xml?q=TESTPACKAGE-AT-PICKUPPOINT".
Unfortunately, you cannot use "XDocument xml = XDocument.Load("");" to retrieve the data because the url address is not a xml file.
What sourcecode in C# do I need in order to retrieve the data of the xml based on the URL address "http://sporing.bring.no/sporing.xml?q=TESTPACKAGE-AT-PICKUPPOINT"?
Thanks!
the data because the url address is not a xml fileHuh? That is an XML file. That works fine.WebClient.DownloadFileto download it into a string, then useXDocument.Parse()to load it from the string.