Click here to Skip to main content
15,877,103 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: searching an XML file Pin
jacobparker30-Aug-07 4:54
jacobparker30-Aug-07 4:54 
GeneralRe: searching an XML file Pin
Spacix One30-Aug-07 5:10
Spacix One30-Aug-07 5:10 
Questionform control text value & XML Pin
Blubbo28-Aug-07 9:30
Blubbo28-Aug-07 9:30 
QuestionScaling a Polygon Pin
Joshua Lunsford28-Aug-07 9:26
Joshua Lunsford28-Aug-07 9:26 
AnswerRe: Scaling a Polygon Pin
Hessam Jalali28-Aug-07 21:56
Hessam Jalali28-Aug-07 21:56 
GeneralRe: Scaling a Polygon Pin
Joshua Lunsford4-Sep-07 10:01
Joshua Lunsford4-Sep-07 10:01 
GeneralRe: Scaling a Polygon Pin
Lewis Liu L8-Sep-09 13:56
Lewis Liu L8-Sep-09 13:56 
QuestionCheck MICR Pin
Saamir28-Aug-07 8:19
Saamir28-Aug-07 8:19 
Questionwhich is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:14
I Believe In GOD28-Aug-07 7:14 
AnswerRe: which is more faster Embedded Control or External Pin
Scott Dorman28-Aug-07 7:20
professionalScott Dorman28-Aug-07 7:20 
GeneralRe: which is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:42
I Believe In GOD28-Aug-07 7:42 
AnswerRe: which is more faster Embedded Control or External Pin
led mike28-Aug-07 7:22
led mike28-Aug-07 7:22 
GeneralRe: which is more faster Embedded Control or External Pin
I Believe In GOD28-Aug-07 7:45
I Believe In GOD28-Aug-07 7:45 
AnswerRe: which is more faster Embedded Control or External Pin
Daniel Turini28-Aug-07 10:51
Daniel Turini28-Aug-07 10:51 
QuestionConverting numbers Pin
Le centriste28-Aug-07 6:48
Le centriste28-Aug-07 6: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.