Orhan Cinar
Orhan Cinar

Reputation: 8410

Get Xml Files From Website

How can i get xml files from a web site and save it on pc. what is easy way with C# ?

Upvotes: 1

Views: 1195

Answers (1)

csl
csl

Reputation: 11358

Use WebClient from the .NET library:

WebClient Client = new WebClient();
Client.DownloadFile("http://foo.bar", @"C:\filename.xml");

Upvotes: 5

Related Questions