Click here to Skip to main content
15,922,325 members
Home / Discussions / C#
   

C#

 
AnswerRe: Start a function in application A triggered by application B Pin
Judah Gabriel Himango18-Apr-08 8:06
sponsorJudah Gabriel Himango18-Apr-08 8:06 
GeneralRe: Start a function in application A triggered by application B Pin
Spacix One18-Apr-08 8:52
Spacix One18-Apr-08 8:52 
QuestionHow to center the Button through code in the form? Pin
pdoy070818-Apr-08 5:42
pdoy070818-Apr-08 5:42 
AnswerRe: How to center the Button through code in the form? Pin
Charith Jayasundara18-Apr-08 6:16
Charith Jayasundara18-Apr-08 6:16 
GeneralRe: How to center the Button through code in the form? Pin
Charith Jayasundara18-Apr-08 6:19
Charith Jayasundara18-Apr-08 6:19 
AnswerRe: How to center the Button through code in the form? Pin
Rob Smiley18-Apr-08 6:16
Rob Smiley18-Apr-08 6:16 
GeneralRe: How to center the Button through code in the form? Pin
pdoy070818-Apr-08 6:28
pdoy070818-Apr-08 6:28 
GeneralCrystal Reports Pin
Wikus.Olivier18-Apr-08 5:11
Wikus.Olivier18-Apr-08 5:11 
QuestionLooping Though A DataGridView? Pin
Harvey Saayman18-Apr-08 4:48
Harvey Saayman18-Apr-08 4:48 
AnswerRe: Looping Though A DataGridView? Pin
Justin Perez18-Apr-08 5:05
Justin Perez18-Apr-08 5:05 
GeneralRe: Looping Though A DataGridView? Pin
Harvey Saayman21-Apr-08 0:03
Harvey Saayman21-Apr-08 0:03 
AnswerRe: Looping Though A DataGridView? Pin
Charith Jayasundara18-Apr-08 7:00
Charith Jayasundara18-Apr-08 7:00 
GeneralCombox in datagridview causes exception Pin
AndrusM18-Apr-08 4:31
AndrusM18-Apr-08 4:31 
GeneralRe: Combox in datagridview causes exception Pin
Justin Perez18-Apr-08 5:07
Justin Perez18-Apr-08 5:07 
GeneralRe: Combox in datagridview causes exception Pin
AndrusM18-Apr-08 5:18
AndrusM18-Apr-08 5:18 
Questionsql server issue Pin
varun.g18-Apr-08 4:26
varun.g18-Apr-08 4:26 
GeneralRe: sql server issue Pin
Charith Jayasundara18-Apr-08 7:05
Charith Jayasundara18-Apr-08 7:05 
Generalappending xml document in C# Pin
mayuri12318-Apr-08 3:37
mayuri12318-Apr-08 3:37 
HI,

I need to append new tags to the existing xml document.
PLease review this code ,

string txt = TextBox1.Text.ToString();
XmlDocument doc= new XmlDocument();
doc.LoadXml(txt);
XmlElement el = doc.CreateElement("property1");
el.SetAttribute("name1", "C1");
el.InnerText = "This row is being appended to the end of the document.";
doc.DocumentElement.AppendChild(el);
doc.Save(txt);

This code will be helpful to create the childnode, but iam looking for appending Root node as well as childnodes.
Please help me to extend this code for Root nodes.

Note : no need to create XmlDeclaration statement becoz it will be thr for selected xml file by default.

Appreciate your precious reply.

Thanks a lot,
Anjali... D'Oh! | :doh:
GeneralRe: appending xml document in C# Pin
led mike18-Apr-08 4:40
led mike18-Apr-08 4:40 
JokeRe: appending xml document in C# Pin
Not Active18-Apr-08 7:33
mentorNot Active18-Apr-08 7:33 
GeneralString.replace("\","\\") never work Pin
cocoonwls18-Apr-08 3:06
cocoonwls18-Apr-08 3:06 
GeneralRe: String.replace("\","\\") never work Pin
Paddy Boyd18-Apr-08 3:08
Paddy Boyd18-Apr-08 3:08 
GeneralRe: String.replace("\","\\") never work Pin
phannon8618-Apr-08 3:19
professionalphannon8618-Apr-08 3:19 
GeneralOr just use @ Pin
Mircea Puiu18-Apr-08 3:35
Mircea Puiu18-Apr-08 3:35 
GeneralRe: String.replace("\","\\") never work Pin
cocoonwls18-Apr-08 3:35
cocoonwls18-Apr-08 3:35 

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.