Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
AnswerRe: returning values Pin
ednrgc9-Jan-07 2:59
ednrgc9-Jan-07 2:59 
AnswerRe: returning values Pin
andyharman9-Jan-07 6:58
professionalandyharman9-Jan-07 6:58 
GeneralRe: returning values Pin
PandaBear113-Nov-09 16:29
PandaBear113-Nov-09 16:29 
Questionreading xml file to listbox Pin
Yustme9-Jan-07 0:13
Yustme9-Jan-07 0:13 
AnswerRe: reading xml file to listbox Pin
Colin Angus Mackay9-Jan-07 0:28
Colin Angus Mackay9-Jan-07 0:28 
GeneralRe: reading xml file to listbox Pin
Yustme9-Jan-07 0:45
Yustme9-Jan-07 0:45 
GeneralRe: reading xml file to listbox Pin
Colin Angus Mackay9-Jan-07 2:02
Colin Angus Mackay9-Jan-07 2:02 
AnswerRe: reading xml file to listbox Pin
Stefan Troschuetz9-Jan-07 0:29
Stefan Troschuetz9-Jan-07 0: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 0:59
Yustme9-Jan-07 0:59 
GeneralRe: reading xml file to listbox Pin
Stefan Troschuetz9-Jan-07 1:06
Stefan Troschuetz9-Jan-07 1:06 
GeneralRe: reading xml file to listbox Pin
Yustme9-Jan-07 1:26
Yustme9-Jan-07 1:26 
QuestionHow to provide the Search option Pin
Vishalagrawal19-Jan-07 0:12
Vishalagrawal19-Jan-07 0:12 
AnswerRe: How to provide the Search option Pin
Pete O'Hanlon9-Jan-07 0:32
mvePete O'Hanlon9-Jan-07 0:32 
QuestionByteArray To Image Pin
AB77718-Jan-07 22:57
AB77718-Jan-07 22:57 
AnswerRe: ByteArray To Image Pin
Christian Graus8-Jan-07 23:13
protectorChristian Graus8-Jan-07 23:13 
GeneralRe: ByteArray To Image Pin
AB77718-Jan-07 23:21
AB77718-Jan-07 23:21 
GeneralRe: ByteArray To Image Pin
Christian Graus8-Jan-07 23:30
protectorChristian Graus8-Jan-07 23:30 
AnswerRe: ByteArray To Image Pin
J. Dunlap8-Jan-07 23:15
J. Dunlap8-Jan-07 23:15 
GeneralRe: ByteArray To Image Pin
AB77719-Jan-07 0:39
AB77719-Jan-07 0:39 
QuestionFormatting DateTime Pin
GermanDM8-Jan-07 22:47
GermanDM8-Jan-07 22:47 
AnswerRe: Formatting DateTime Pin
Christian Graus8-Jan-07 23:18
protectorChristian Graus8-Jan-07 23:18 
AnswerRe: Formatting DateTime Pin
Tyler458-Jan-07 23:18
Tyler458-Jan-07 23:18 
AnswerRe: Formatting DateTime Pin
Fedor Hajdu9-Jan-07 0:14
professionalFedor Hajdu9-Jan-07 0:14 
GeneralRe: Formatting DateTime Pin
J4amieC8-Jan-07 23:48
J4amieC8-Jan-07 23:48 
QuestionSQL-DMO. How to use JobFilter in EnumJobs method Pin
Member 6972548-Jan-07 22:05
Member 6972548-Jan-07 22: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.