Click here to Skip to main content
15,896,207 members
Home / Discussions / C#
   

C#

 
AnswerRe: Accessing File from Remote PC Pin
Rolando CC21-Apr-09 5:39
professionalRolando CC21-Apr-09 5:39 
Questionthe best way to draw a calendar in C# Pin
student198821-Apr-09 4:10
student198821-Apr-09 4:10 
AnswerRe: the best way to draw a calendar in C# Pin
Rob Philpott21-Apr-09 4:44
Rob Philpott21-Apr-09 4:44 
GeneralRe: the best way to draw a calendar in C# Pin
student198821-Apr-09 5:20
student198821-Apr-09 5:20 
GeneralRe: the best way to draw a calendar in C# Pin
musefan21-Apr-09 5:54
musefan21-Apr-09 5:54 
GeneralRe: the best way to draw a calendar in C# Pin
Rob Philpott21-Apr-09 6:00
Rob Philpott21-Apr-09 6:00 
GeneralRe: the best way to draw a calendar in C# Pin
student198821-Apr-09 11:05
student198821-Apr-09 11:05 
GeneralRe: the best way to draw a calendar in C# Pin
22over721-Apr-09 11:41
22over721-Apr-09 11:41 
Questionlistbox string text unorganized Pin
neodeaths21-Apr-09 4:05
neodeaths21-Apr-09 4:05 
AnswerRe: listbox string text unorganized Pin
Eddy Vluggen21-Apr-09 4:31
professionalEddy Vluggen21-Apr-09 4:31 
QuestionSquare Wave using C# Pin
spalanivel21-Apr-09 3:46
spalanivel21-Apr-09 3:46 
AnswerRe: Square Wave using C# Pin
Rob Philpott21-Apr-09 3:49
Rob Philpott21-Apr-09 3:49 
GeneralRe: Square Wave using C# Pin
spalanivel21-Apr-09 4:00
spalanivel21-Apr-09 4:00 
GeneralRe: Square Wave using C# Pin
Rob Philpott21-Apr-09 4:40
Rob Philpott21-Apr-09 4:40 
GeneralRe: Square Wave using C# Pin
spalanivel21-Apr-09 19:38
spalanivel21-Apr-09 19:38 
AnswerRe: Square Wave using C# Pin
Wes Aday21-Apr-09 3:57
professionalWes Aday21-Apr-09 3:57 
AnswerRe: Square Wave using C# Pin
stancrm21-Apr-09 4:10
stancrm21-Apr-09 4:10 
QuestionHow Autocomplete works in Windows application Pin
NarVish21-Apr-09 3:46
NarVish21-Apr-09 3:46 
AnswerRe: How Autocomplete works in Windows application Pin
Eddy Vluggen21-Apr-09 4:29
professionalEddy Vluggen21-Apr-09 4:29 
GeneralRe: How Autocomplete works in Windows application Pin
NarVish21-Apr-09 20:10
NarVish21-Apr-09 20:10 
Questionfinding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 3:25
Emmet_Brown21-Apr-09 3:25 
AnswerRe: finding a specific node in XML with given string Pin
Jimmanuel21-Apr-09 3:39
Jimmanuel21-Apr-09 3:39 
AnswerRe: finding a specific node in XML with given string Pin
Rob Philpott21-Apr-09 3:47
Rob Philpott21-Apr-09 3:47 
There's usually two approaches to XML things like this, a streaming one which has a small memory footprint or the document approach where you load the whole xml into memory. The latter is easier if your xml is not too big.

(There's also a swanky new way using Linq2Xml which I know nothing about).

Something *like* :

XmlDocument doc = new XmlDocument();
doc.Load(<the file="">);

XmlNodeCollection nodes = doc.SelectNodes("//<element name="">");</element></the>


That will return you all the child elements with the name your looking for. You can iterate over them etc.

You'll need to brush up a bit on XPath to do it, but its easy enough once you've got your head around that.

Regards,
Rob Philpott.

GeneralRe: finding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 4:19
Emmet_Brown21-Apr-09 4:19 
GeneralRe: finding a specific node in XML with given string Pin
Rob Philpott21-Apr-09 4:26
Rob Philpott21-Apr-09 4:26 

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.