Click here to Skip to main content
15,887,875 members
Home / Discussions / C#
   

C#

 
GeneralRe: close button on control box of form Pin
Heath Stewart11-Feb-04 12:18
protectorHeath Stewart11-Feb-04 12:18 
GeneralOpinions needed on Win Form Design Pin
MrJJKoolJ11-Feb-04 11:29
MrJJKoolJ11-Feb-04 11:29 
GeneralRe: Opinions needed on Win Form Design Pin
Heath Stewart11-Feb-04 12:15
protectorHeath Stewart11-Feb-04 12:15 
GeneralRe: Opinions needed on Win Form Design Pin
MrJJKoolJ11-Feb-04 14:18
MrJJKoolJ11-Feb-04 14:18 
GeneralRe: Opinions needed on Win Form Design Pin
Heath Stewart12-Feb-04 3:26
protectorHeath Stewart12-Feb-04 3:26 
GeneralSetting Properties through .Net Remoting Pin
Brian Rogan11-Feb-04 11:09
Brian Rogan11-Feb-04 11:09 
Generalproblem with XmlDocument Pin
visiontec11-Feb-04 10:50
visiontec11-Feb-04 10:50 
GeneralRe: problem with XmlDocument Pin
Kentamanos11-Feb-04 11:01
Kentamanos11-Feb-04 11:01 
You loaded the document, then you told the document to create a new node. It doesn't know you want it inside the WebPwds element, so it just adds it to the end of its children (that means it adds it after the WebPwds element).

You need to call "AppendChild" or something similar from the XmlNode you want to add to. You could for instance do something like:

XmlNode webPwdsNode = doc.FirstChild;
webPwds.AppendChild(newPwdNode);

where newPwdNode is an XmlNode you created that contains all of the information you want.

I personally normally load in a document (I usually validate with a schema too when I load stuff in) and create classes based upon what I read (I do this by hand instead of using serialization). When it's time to write it out, I then create a XmlTextWriter and write out the document from scratch.



I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.

-David St. Hubbins
QuestionIs anything wrong with this? Pin
profoundwhispers11-Feb-04 10:40
profoundwhispers11-Feb-04 10:40 
AnswerRe: Is anything wrong with this? Pin
Heath Stewart11-Feb-04 12:08
protectorHeath Stewart11-Feb-04 12:08 
GeneralDatabinding to combobox Pin
Anonymous11-Feb-04 10:34
Anonymous11-Feb-04 10:34 
GeneralRe: Databinding to combobox Pin
Heath Stewart11-Feb-04 12:00
protectorHeath Stewart11-Feb-04 12:00 
Generalmanaging Deletes and Backspaces Pin
obelisk2911-Feb-04 10:19
obelisk2911-Feb-04 10:19 
GeneralRe: managing Deletes and Backspaces Pin
Heath Stewart11-Feb-04 11:57
protectorHeath Stewart11-Feb-04 11:57 
Generalmanaged c++ class that inherits from unmanaged c++ Pin
godzooky11-Feb-04 8:30
godzooky11-Feb-04 8:30 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
Heath Stewart11-Feb-04 9:47
protectorHeath Stewart11-Feb-04 9:47 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
godzooky11-Feb-04 9:50
godzooky11-Feb-04 9:50 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
Heath Stewart11-Feb-04 9:52
protectorHeath Stewart11-Feb-04 9:52 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
godzooky11-Feb-04 10:07
godzooky11-Feb-04 10:07 
GeneralRe: managed c++ class that inherits from unmanaged c++ Pin
Heath Stewart11-Feb-04 10:10
protectorHeath Stewart11-Feb-04 10:10 
GeneralMouse Button > keystroke Pin
Spanky311-Feb-04 8:04
Spanky311-Feb-04 8:04 
GeneralRe: Mouse Button > keystroke Pin
Kentamanos11-Feb-04 8:15
Kentamanos11-Feb-04 8:15 
GeneralRe: Mouse Button > keystroke Pin
Daniel Turini11-Feb-04 8:16
Daniel Turini11-Feb-04 8:16 
GeneralRe: Mouse Button > keystroke Pin
Spanky311-Feb-04 8:28
Spanky311-Feb-04 8:28 
GeneralRe: Mouse Button > keystroke Pin
Kentamanos11-Feb-04 9:20
Kentamanos11-Feb-04 9:20 

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.