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

C#

 
AnswerRe: MSDN like help Pin
Stefan Troschuetz23-Mar-07 22:37
Stefan Troschuetz23-Mar-07 22:37 
QuestionIntellisence Pin
Kanjinghat23-Mar-07 20:44
Kanjinghat23-Mar-07 20:44 
AnswerRe: Intellisence Pin
Stefan Troschuetz23-Mar-07 22:42
Stefan Troschuetz23-Mar-07 22:42 
AnswerRe: Intellisence Pin
Mike Hankey23-Mar-07 23:18
mveMike Hankey23-Mar-07 23:18 
QuestionSystem.Xml Pin
thecodedemon23-Mar-07 19:43
thecodedemon23-Mar-07 19:43 
AnswerRe: System.Xml Pin
Stefan Troschuetz23-Mar-07 22:50
Stefan Troschuetz23-Mar-07 22:50 
GeneralRe: System.Xml Pin
thecodedemon24-Mar-07 4:24
thecodedemon24-Mar-07 4:24 
GeneralRe: System.Xml Pin
Stefan Troschuetz24-Mar-07 4:44
Stefan Troschuetz24-Mar-07 4:44 
Some remarks:
1. If you want to create an element why don't you use the CreateElement method. This way you do not need to pass a XmlNodeType value and furthermore the method as an overload where you do not need to specify a namespace URI (comes in handy for creating unqualified elements).
2. The CreateTextNode method already takes the text of the text node as argument, so by passing in "Text" and afterwards setting the InnerText property of the created node to "A text node" is redundant. Directly pass "A text node" to the CreateTextNode method.
3. Using SelectSingleNode to get the root element of your document is quite inefficient. You can access the root element of a document directly via the XmlDocument.DocumentElement property. As an alternative you could assign the root node to a variable after creating it and then append it (as done with the text node).


"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: System.Xml Pin
thecodedemon24-Mar-07 4:53
thecodedemon24-Mar-07 4:53 
GeneralRe: System.Xml Pin
Stefan Troschuetz24-Mar-07 5:11
Stefan Troschuetz24-Mar-07 5:11 
Questiontimer_tick Pin
yaminilatha23-Mar-07 18:27
yaminilatha23-Mar-07 18:27 
AnswerRe: timer_tick Pin
Christian Graus23-Mar-07 18:36
protectorChristian Graus23-Mar-07 18:36 
GeneralRe: timer_tick Pin
yaminilatha29-Mar-07 2:12
yaminilatha29-Mar-07 2:12 
QuestionBuilding Audio Apps Using C# Pin
mikepalma23-Mar-07 18:13
mikepalma23-Mar-07 18:13 
AnswerRe: Building Audio Apps Using C# Pin
Christian Graus23-Mar-07 18:35
protectorChristian Graus23-Mar-07 18:35 
QuestionNo overload for method take "0" arguments Pin
chitra4sat23-Mar-07 18:08
chitra4sat23-Mar-07 18:08 
AnswerRe: No overload for method take "0" arguments Pin
Christian Graus23-Mar-07 18:31
protectorChristian Graus23-Mar-07 18:31 
GeneralRe: No overload for method take "0" arguments Pin
chitra4sat23-Mar-07 19:21
chitra4sat23-Mar-07 19:21 
GeneralRe: No overload for method take "0" arguments Pin
abhinarulkar23-Mar-07 20:13
abhinarulkar23-Mar-07 20:13 
GeneralRe: No overload for method take "0" arguments Pin
chitra4sat23-Mar-07 20:31
chitra4sat23-Mar-07 20:31 
GeneralRe: No overload for method take "0" arguments Pin
Stefan Troschuetz23-Mar-07 23:37
Stefan Troschuetz23-Mar-07 23:37 
Questionbranching and skip logic Pin
econner23-Mar-07 16:37
econner23-Mar-07 16:37 
AnswerRe: branching and skip logic Pin
Christian Graus23-Mar-07 16:58
protectorChristian Graus23-Mar-07 16:58 
AnswerRe: branching and skip logic Pin
Leslie Sanford23-Mar-07 17:50
Leslie Sanford23-Mar-07 17:50 
QuestionMDI in pocket pc Pin
mezo_2223-Mar-07 13:00
mezo_2223-Mar-07 13:00 

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.