Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: finding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 4:39
Emmet_Brown21-Apr-09 4:39 
GeneralRe: finding a specific node in XML with given string Pin
Rob Philpott21-Apr-09 4:41
Rob Philpott21-Apr-09 4:41 
GeneralRe: finding a specific node in XML with given string Pin
Emmet_Brown21-Apr-09 4:45
Emmet_Brown21-Apr-09 4:45 
AnswerRe: finding a specific node in XML with given string Pin
fly90421-Apr-09 4:09
fly90421-Apr-09 4:09 
QuestionImage on Clipboard Pin
Anubhava Dimri21-Apr-09 2:43
Anubhava Dimri21-Apr-09 2:43 
Questionget a graphica in picturebox from one form to another [modified] Pin
R.Krishnakumar21-Apr-09 2:12
R.Krishnakumar21-Apr-09 2:12 
AnswerRe: get a graphica in picturebox from one form to another Pin
Rob Philpott21-Apr-09 3:23
Rob Philpott21-Apr-09 3:23 
QuestionInsert a class instance into a row in data table Pin
Hari.net21-Apr-09 1:01
Hari.net21-Apr-09 1:01 
AnswerRe: Insert a class instance into a row in data table Pin
Le centriste21-Apr-09 1:14
Le centriste21-Apr-09 1:14 
GeneralRe: Insert a class instance into a row in data table Pin
Hari.net21-Apr-09 1:26
Hari.net21-Apr-09 1:26 
GeneralRe: Insert a class instance into a row in data table Pin
Le centriste21-Apr-09 2:01
Le centriste21-Apr-09 2:01 
AnswerRe: Insert a class instance into a row in data table Pin
Henry Minute21-Apr-09 1:16
Henry Minute21-Apr-09 1:16 
AnswerRe: Insert a class instance into a row in data table Pin
musefan21-Apr-09 1:16
musefan21-Apr-09 1:16 
AnswerRe: Insert a class instance into a row in data table Pin
S. Senthil Kumar21-Apr-09 1:59
S. Senthil Kumar21-Apr-09 1:59 
QuestionCrop a circle image from a square picture Pin
Babita Shivade21-Apr-09 0:43
Babita Shivade21-Apr-09 0:43 

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.