Get XML file!?

  • Thread starter Thread starter Oscar Thornell
  • Start date Start date
O

Oscar Thornell

Hi!

I would like to get (download) an XML file that resides on a HTTP server
(Tomcat....doesn´t rely matter..).
What is the best way to do that in C#/.NET.....on the client side a typed
dataset is waiting for the XML...

Regards

/Oscar
 
Oscar said:
Hi!

I would like to get (download) an XML file that resides on a HTTP
server (Tomcat....doesn´t rely matter..).
What is the best way to do that in C#/.NET.....on the client side a
typed dataset is waiting for the XML...

Assuming you can access the file without authentication or setting up
special infrastructure properties (like proxies) for your HTTP connection

DataSet ds = new DataSet();
ds.ReadXml("http://host/path/to/dataset.xml");

does the trick.

Cheers,
 
Back
Top