Click here to Skip to main content
15,917,455 members
Home / Discussions / C#
   

C#

 
QuestionCOM objects in C# with config files. Pin
Marcus_29-Jan-07 0:46
Marcus_29-Jan-07 0:46 
Questionreturning values Pin
satyam1439-Jan-07 0:34
satyam1439-Jan-07 0:34 
AnswerRe: returning values Pin
Mircea Puiu9-Jan-07 0:36
Mircea Puiu9-Jan-07 0:36 
AnswerRe: returning values Pin
Colin Angus Mackay9-Jan-07 0:42
Colin Angus Mackay9-Jan-07 0:42 
AnswerRe: returning values Pin
M. A. Deniz Yalman9-Jan-07 0:45
M. A. Deniz Yalman9-Jan-07 0:45 
GeneralRe: returning values Pin
Colin Angus Mackay9-Jan-07 5:43
Colin Angus Mackay9-Jan-07 5:43 
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 

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.