Click here to Skip to main content
15,904,823 members
Home / Discussions / C#
   

C#

 
AnswerRe: Motion Detection Pin
Christian Graus28-Aug-07 20:47
protectorChristian Graus28-Aug-07 20:47 
QuestionImporting multiple projects (not solutions) in vs2005 at once Pin
shatterstar645728-Aug-07 17:22
shatterstar645728-Aug-07 17:22 
QuestionShared variable across processes Pin
xavierakx28-Aug-07 16:03
xavierakx28-Aug-07 16:03 
AnswerRe: Shared variable across processes Pin
Super Lloyd28-Aug-07 16:50
Super Lloyd28-Aug-07 16:50 
QuestionUPnP C# application‏ Pin
crazy friend28-Aug-07 15:23
crazy friend28-Aug-07 15:23 
AnswerRe: xcopy and timestamp Pin
Spacix One28-Aug-07 14:28
Spacix One28-Aug-07 14:28 
GeneralRe: xcopy and timestamp Pin
devvvy28-Aug-07 14:47
devvvy28-Aug-07 14:47 
QuestionHow To Cnvert Turbo c++ Serial Port To c#2.0 Pin
mohsen haghighi28-Aug-07 12:14
mohsen haghighi28-Aug-07 12:14 
AnswerRe: How To Cnvert Turbo c++ Serial Port To c#2.0 Pin
Spacix One28-Aug-07 14:23
Spacix One28-Aug-07 14:23 
Questionhosting windows applications in a winform Pin
algoaddict28-Aug-07 12:07
algoaddict28-Aug-07 12:07 
AnswerRe: hosting windows applications in a winform Pin
Spacix One28-Aug-07 14:13
Spacix One28-Aug-07 14:13 
QuestionRe: hosting windows applications in a winform Pin
algoaddict28-Aug-07 15:37
algoaddict28-Aug-07 15:37 
AnswerRe: hosting windows applications in a winform Pin
Spacix One29-Aug-07 5:04
Spacix One29-Aug-07 5:04 
AnswerRe: hosting windows applications in a winform Pin
Dave Kreskowiak29-Aug-07 5:14
mveDave Kreskowiak29-Aug-07 5:14 
Questionc# class design help Pin
rsaint2728-Aug-07 11:28
rsaint2728-Aug-07 11:28 
QuestionREGEX start and end Pin
Saamir28-Aug-07 11:25
Saamir28-Aug-07 11:25 
AnswerRe: REGEX start and end Pin
PIEBALDconsult28-Aug-07 11:41
mvePIEBALDconsult28-Aug-07 11:41 
GeneralRe: REGEX start and end Pin
Spacix One28-Aug-07 11:43
Spacix One28-Aug-07 11:43 
AnswerRe: REGEX start and end Pin
Joshua Lunsford4-Sep-07 10:04
Joshua Lunsford4-Sep-07 10:04 
Questionsearching an XML file [modified] Pin
jacobparker28-Aug-07 10:14
jacobparker28-Aug-07 10:14 
AnswerRe: searching an XML file Pin
Spacix One28-Aug-07 10:38
Spacix One28-Aug-07 10:38 
GeneralRe: searching an XML file Pin
jacobparker28-Aug-07 12:30
jacobparker28-Aug-07 12:30 
GeneralRe: searching an XML file Pin
Spacix One28-Aug-07 14:04
Spacix One28-Aug-07 14:04 
What I posted will find every tag of that name

Example:
<rootElement>
 <title>1</title>
 <title>2</title>
 <title>3</title>
 <title>4</title>
 <title>5</title>
 <title>6</title>
 <title>7</title>
 <title>8</title>
 <title>9</title>
</rootElement>

would output the following to the console
1
2
3
4
5
6
7
8
9


If you wish to use sub elements the example you posted then after the .getElementsByTagName("word")
check each node the node list as before see if there is more than one use .ChildNodes.Count on each value in the node list. If it is > 1 then it has more an just a text node under it. To goto the first child use .FirstChild to move down one level to <wordString> and .NextSibling to goto the <Description> tag

oh and hint hint
if .NextSibling == .LastChild then your at the end
GeneralRe: searching an XML file Pin
Christian Graus28-Aug-07 16:12
protectorChristian Graus28-Aug-07 16:12 
GeneralRe: searching an XML file Pin
Spacix One29-Aug-07 5:13
Spacix One29-Aug-07 5:13 

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.