简体   繁体   English

从网站获取 XML 文件

[英]Get Xml Files From Website

How can i get xml files from a web site and save it on pc.如何从网站获取 xml 文件并将其保存在 PC 上。 what is easy way with C# ? C# 有什么简单的方法?

Use WebClient from the .NET library:使用 .NET 库中的WebClient

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM