Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
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 
Question"Real-Time" Audio Manipulation of Microphone Input Pin
littleGiant18-Apr-08 2:11
littleGiant18-Apr-08 2:11 
GeneralLosing object dataGridViewRow.cell.tag after sort Pin
oracleConvert18-Apr-08 2:05
oracleConvert18-Apr-08 2:05 
QuestionHow to working with database, Strongly Typed ? Pin
hdv21218-Apr-08 1:30
hdv21218-Apr-08 1:30 
AnswerRe: How to working with database, Strongly Typed ? Pin
Pete O'Hanlon18-Apr-08 2:33
mvePete O'Hanlon18-Apr-08 2:33 
GeneralRe: How to working with database, Strongly Typed ? Pin
hdv21218-Apr-08 3:37
hdv21218-Apr-08 3:37 
GeneralRe: How to working with database, Strongly Typed ? Pin
ChrisKo18-Apr-08 5:10
ChrisKo18-Apr-08 5:10 
GeneralRe: How to working with database, Strongly Typed ? Pin
hdv21218-Apr-08 6:36
hdv21218-Apr-08 6:36 
GeneralSqlConnection, extract server & database values Pin
laserbaronen18-Apr-08 1:04
laserbaronen18-Apr-08 1:04 
AnswerRe: SqlConnection, extract server & database values [SOLVED] Pin
laserbaronen18-Apr-08 1:10
laserbaronen18-Apr-08 1:10 
GeneralUnkown abt return type Pin
EvilInside18-Apr-08 0:27
EvilInside18-Apr-08 0:27 

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.