Click here to Skip to main content
15,900,724 members
Home / Discussions / C#
   

C#

 
AnswerRe: UserControl like in TaskPane of MyComputer Pin
freshonlineMax3-May-07 19:55
freshonlineMax3-May-07 19:55 
QuestionReminder Pin
soneliso3-May-07 2:21
soneliso3-May-07 2:21 
AnswerRe: Reminder Pin
Giorgi Dalakishvili3-May-07 2:32
mentorGiorgi Dalakishvili3-May-07 2:32 
AnswerRe: Reminder Pin
CPallini3-May-07 2:47
mveCPallini3-May-07 2:47 
GeneralRe: Reminder Pin
soneliso3-May-07 3:31
soneliso3-May-07 3:31 
AnswerRe: Reminder Pin
AFSEKI7-May-07 5:01
AFSEKI7-May-07 5:01 
Questionhowto get all netbios resources of specified IP in the LAN? Pin
n0vice3-May-07 2:07
n0vice3-May-07 2:07 
QuestionParse and download from xml file. [modified] Pin
mhm0013-May-07 1:28
mhm0013-May-07 1:28 
Can anyone please help me with this.
I am building a C# console application that has to read a xml file and download the csv file's to a certain location. All the information is written in the xml file.
So far the reading en displaying the content of the xml file is going OK.
But... I do not know the code to download the csv file from the url in the xml file.
Down here i've attached the code i've written for so far.
Thank u.
= = ==
using System;
using System.IO;
using System.Xml;
using System.Net;
namespace Book
{ ///
/// Summary description for Class1.
///

class Class1
{[STAThread]
static void Main(string[] args)
{ XmlTextReader reader = null;
reader = new XmlTextReader("WTZI.xml");
WebClient client = new WebClient();
while (reader.Read())
{ if (reader.NodeType == XmlNodeType.Element)
{if(reader.LocalName.Equals("locatie"))
{Console.Write("{0}",reader.ReadString());}
if(reader.LocalName.Equals("bestemming"))
{Console.Write("{0}",reader.ReadString());}
}
}

}
}
}
====
Content of XML FILE

<bestanden
<bestand
locatie="">http://www.bouwcollege.nl/Exports/CIBG/GRIP_Doelgroepen.csvc:\temp\WTZI\Doelgroepen.csvhttp://www.bouwcollege.nl/Exports/CIBG/GRIP_Instellingen.csvc:\temp\WTZI\Instellingen.csvhttp://www.bouwcollege.nl/Exports/CIBG/GRIP_Toelatingen.csvc:\temp\WTZI\Toelatingen.csvhttp://www.bouwcollege.nl/Exports/CIBG/GRIP_Toelatingfuncties.csvc:\temp\WTZI\Toelatingfuncties.csvhttp://www.bouwcollege.nl/Exports/CIBG/GRIP_Zorgkantoren.csvc:\temp\WTZI\Zorgkantoren.csv
AnswerRe: Parse and download from xml file. Pin
Stefan Troschuetz3-May-07 2:18
Stefan Troschuetz3-May-07 2:18 
AnswerRe: Parse and download from xml file. Pin
mhm0013-May-07 2:56
mhm0013-May-07 2:56 
GeneralRe: Parse and download from xml file. Pin
Stefan Troschuetz3-May-07 3:10
Stefan Troschuetz3-May-07 3:10 
AnswerRe: Parse and download from xml file. Pin
mhm0013-May-07 4:30
mhm0013-May-07 4:30 
GeneralRe: Parse and download from xml file. Pin
Stefan Troschuetz3-May-07 9:11
Stefan Troschuetz3-May-07 9:11 
QuestionHow to create a contextualized context menu? Pin
sinosoidal3-May-07 0:57
sinosoidal3-May-07 0:57 
AnswerRe: How to create a contextualized context menu? Pin
Bijesh3-May-07 1:12
Bijesh3-May-07 1:12 
GeneralRe: How to create a contextualized context menu? Pin
sinosoidal3-May-07 2:38
sinosoidal3-May-07 2:38 
AnswerRe: How to create a contextualized context menu? Pin
J. Dunlap3-May-07 1:23
J. Dunlap3-May-07 1:23 
Questionneed coding Pin
Revathi Raj3-May-07 0:57
Revathi Raj3-May-07 0:57 
AnswerRe: need coding Pin
Luc Pattyn3-May-07 1:04
sitebuilderLuc Pattyn3-May-07 1:04 
AnswerRe: need coding Pin
Guffa3-May-07 1:13
Guffa3-May-07 1:13 
Questionregarding listbox in c# [modified] Pin
giribabu2343-May-07 0:53
giribabu2343-May-07 0:53 
AnswerRe: regarding listbox in c# Pin
AFSEKI7-May-07 5:04
AFSEKI7-May-07 5:04 
QuestionReg, Windows control Validation--do we have any validation controls in windows? Pin
pashitech3-May-07 0:50
pashitech3-May-07 0:50 
Questionneed coding Pin
Revathi Raj3-May-07 0:43
Revathi Raj3-May-07 0:43 
AnswerRe: need coding Pin
Colin Angus Mackay3-May-07 0:48
Colin Angus Mackay3-May-07 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.