Click here to Skip to main content
15,914,258 members
Home / Discussions / C#
   

C#

 
AnswerRe: Windows Services Pin
kubben3-May-07 5:07
kubben3-May-07 5:07 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 5:40
Sumanta Rout3-May-07 5:40 
GeneralRe: Windows Services Pin
kubben3-May-07 5:41
kubben3-May-07 5:41 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 5:44
Sumanta Rout3-May-07 5:44 
GeneralRe: Windows Services Pin
kubben3-May-07 5:45
kubben3-May-07 5:45 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 18:41
Sumanta Rout3-May-07 18:41 
GeneralRe: Windows Services Pin
kubben4-May-07 1:49
kubben4-May-07 1:49 
AnswerRe: Windows Services Pin
justintimberlake3-May-07 19:06
justintimberlake3-May-07 19:06 
QuestionUserControl like in TaskPane of MyComputer Pin
freshonlineMax3-May-07 2:21
freshonlineMax3-May-07 2:21 
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 

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.