Coding for Manipulate XML File Data Using C#?
Answer / mahmoud kotb
XmlDocument doc = new XmlDocument();
doc.Load((@"c:/newfile.xml");
XmlNode xnode = doc.SelectSingleNode("//Settings/Bar");
//read the value of “Dheeraj”)
String Str = xnode.Innerxml;
//TO Update the value of “Dheeraj” to “Kumar”
Xnode.innerxml = “kumar”;
//TO delete the value of “Dheeraj” (all nodes of add tag)
Xnode.removeall();
doc.save((@"c:/newfile.xml");
Is This Answer Correct ? | 3 Yes | 3 No |
Can you declare an array of mixed Types?
Code for Reading and writing from a file?
how to get the table names via c sharp and column names also?
c# code to Count number of 1's in a given range of integer (0 to n)
Code for IP Address Comparison and Conversion in C#?
Code for Searching for Multiple Matches with the MatchCollection Class?
how do i copy textbox contents of 1 form to another form
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
how does the below eqation proceed to be solved: x*=y+z options: x=x*y+z or x=x*(y+z)
program to check if a number is "perfect number".
how to change password in .net with c # with ado.net and also SQL server 2008 change password
How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?