Re: Get XML file!?
From: Joerg Jooss (joerg.jooss_at_gmx.net)
Date: 11/13/04
- Next message: AC: "Re: Null out the current object... possible?"
- Previous message: Joerg Jooss: "Re: Download file"
- In reply to: Oscar Thornell: "Get XML file!?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: AC: "Re: Null out the current object... possible?"
- Previous message: Joerg Jooss: "Re: Download file"
- In reply to: Oscar Thornell: "Get XML file!?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|