The command line utility wget can be used to request an XML feed and write the response directly to a file on disk. The following command line retrieves the latest version of Intrepid’s Product feed and writes it to a file called “Products.xml”.
wget --output-document="Products.xml"
"https://api.peakadventuretravel.com/Feed/FeedService.svc/Product/Intrepid/1/269E38DC-8G7B-5C82-B7FE-056EDDB5E729"
The .NET Framework’s XDocument class allows retrieval of a feed with one line of code. The returned XDocument object can then be traversed using its methods. The following line of C# code retrieves the latest version of Intrepid’s Availability feed and saves it in the XDocument object called “document”.
var document = System.Xml.Linq.XDocument.Load("https://api.peakadventuretravel.com/Feed/FeedService.svc/Availability/Intrepid/1/269E38DC-8G7B-5C82-B7FE-056EDDB5E729");