Re: Get XML file!?

From: Joerg Jooss (joerg.jooss_at_gmx.net)
Date: 11/13/04


Date: Sat, 13 Nov 2004 12:29:43 +0100

Oscar Thornell wrote:
> 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,

-- 
Joerg Jooss
www.joergjooss.de
news@joergjooss.de 


Relevant Pages

  • Programatically Build and Post Form
    ... Automatically send the XML file to a remote server as an HTTP POST ... The problem is how to take this string and stream it to the ...
    (microsoft.public.dotnet.general)
  • OWC10 wont work over HTTPS
    ... I have a CGI which I have written that generates an XML file for OWC.....I'm ... it works fine in both http and https. ... can get a more detailed error message than 'Error opening data file' or any ...
    (microsoft.public.office.developer.web.components)
  • Re: CLI and HTTP diagnostics design
    ... output an XML file. ... The application needs to run from either an HTTP ... HTTP requests don't come from a web ... the output stream. ...
    (comp.lang.php)
  • Re: How to load a webpage !!
    ... would like to access the associated XML file (which you get when you ... var http = null; ... http = new XMLHttpRequest; ... while in reality - executed from a web server ...
    (comp.lang.javascript)
  • Get XML file!?
    ... I would like to get (download) an XML file that resides on a HTTP server ...
    (microsoft.public.dotnet.languages.csharp)