How to read XML data from a URL by using vb.NET and save

后端 未结 3 1813
再見小時候
再見小時候 2020-12-21 11:47

Friends, I am able to get XML file by sing bytes, perhaps which is getting some problem. Can u suggest me alternate method to do the same thing to save XML file?

<         


        
3条回答
  •  死守一世寂寞
    2020-12-21 12:15

    Why not just use the WebClient class and its DownloadFile method?? Seems a lot easier....

    This is in C#, but you should have no trouble converting that to VB.NET:

    WebClient wc = new WebClient();
    wc.DownloadFile("http://xyz", @"C:\getxml.xml");
    

    and you're done!

    Marc

提交回复
热议问题