Click here to Skip to main content
15,849,328 members
Home / Discussions / C#
   

C#

 
AnswerRe: returning values Pin
ednrgc9-Jan-07 3:59
ednrgc9-Jan-07 3:59 
AnswerRe: returning values Pin
andyharman9-Jan-07 7:58
professionalandyharman9-Jan-07 7:58 
GeneralRe: returning values Pin
PandaBear113-Nov-09 17:29
PandaBear113-Nov-09 17:29 
Questionreading xml file to listbox Pin
Yustme9-Jan-07 1:13
Yustme9-Jan-07 1:13 
AnswerRe: reading xml file to listbox Pin
Colin Angus Mackay9-Jan-07 1:28
Colin Angus Mackay9-Jan-07 1:28 
GeneralRe: reading xml file to listbox Pin
Yustme9-Jan-07 1:45
Yustme9-Jan-07 1:45 
GeneralRe: reading xml file to listbox Pin
Colin Angus Mackay9-Jan-07 3:02
Colin Angus Mackay9-Jan-07 3:02 
AnswerRe: reading xml file to listbox Pin
Stefan Troschuetz9-Jan-07 1:29
Stefan Troschuetz9-Jan-07 1:29 
According to the documentation the ReadElementString method positions the reader on the node following the EndElement node; in you case on the next "test" StartElement node. Afterwards you call Read inside the while statement which advances the reader to the next node and thereby your code only recognizes every second "test" element. I'm not that used to the XmlTextReader, so you have to experiment a bit which method gives you the desired result.
By the way calling ToString on the result of ReadElementString is redundant as it already returns a string.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

GeneralRe: reading xml file to listbox Pin
Yustme9-Jan-07 1:59
Yustme9-Jan-07 1:59 
GeneralRe: reading xml file to listbox Pin
Stefan Troschuetz9-Jan-07 2:06
Stefan Troschuetz9-Jan-07 2:06 
GeneralRe: reading xml file to listbox Pin
Yustme9-Jan-07 2:26
Yustme9-Jan-07 2:26 
QuestionHow to provide the Search option Pin
Vishalagrawal19-Jan-07 1:12
Vishalagrawal19-Jan-07 1:12 
AnswerRe: How to provide the Search option Pin
Pete O'Hanlon9-Jan-07 1:32
subeditorPete O'Hanlon9-Jan-07 1:32 
QuestionByteArray To Image Pin
AB77718-Jan-07 23:57
AB77718-Jan-07 23:57 
AnswerRe: ByteArray To Image Pin
Christian Graus9-Jan-07 0:13
protectorChristian Graus9-Jan-07 0:13 
GeneralRe: ByteArray To Image Pin
AB77719-Jan-07 0:21
AB77719-Jan-07 0:21 
GeneralRe: ByteArray To Image Pin
Christian Graus9-Jan-07 0:30
protectorChristian Graus9-Jan-07 0:30 
AnswerRe: ByteArray To Image Pin
J. Dunlap9-Jan-07 0:15
J. Dunlap9-Jan-07 0:15 
GeneralRe: ByteArray To Image Pin
AB77719-Jan-07 1:39
AB77719-Jan-07 1:39 
QuestionFormatting DateTime Pin
GermanDM8-Jan-07 23:47
GermanDM8-Jan-07 23:47 
AnswerRe: Formatting DateTime Pin
Christian Graus9-Jan-07 0:18
protectorChristian Graus9-Jan-07 0:18 
AnswerRe: Formatting DateTime Pin
Tyler459-Jan-07 0:18
Tyler459-Jan-07 0:18 
AnswerRe: Formatting DateTime Pin
Fedor Hajdu9-Jan-07 1:14
professionalFedor Hajdu9-Jan-07 1:14 
GeneralRe: Formatting DateTime Pin
J4amieC9-Jan-07 0:48
J4amieC9-Jan-07 0:48 
QuestionSQL-DMO. How to use JobFilter in EnumJobs method Pin
Member 6972548-Jan-07 23:05
Member 6972548-Jan-07 23:05 

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.