Get XML file!?

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
 
J

Joerg Jooss

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top