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 |
Write a function which accepts list of nouns as input parameter and return the same list in the plural form. Conditions: i) if last letter is r then append s ii) if word ends with y then replace it by ies iii) call this function in main() and produce the required output. for eg:- if chair is input it should give chairs as output.
Write a program to convert postfix expression to infix expression.
how to get the table names via c sharp and column names also?
Write a program. there are 1..n numbers placed in an array in random fashion with one integer missing. find the missing number.
c# code to Count number of 1's in a given range of integer (0 to n)
program for straight line(y=mx+c)
Code for Working with Files under a Directory?
program for string reverse(eg:- i am boy -> boy am i)
8 Answers Black Pepper, Infosys, Mind Tree,
c# coding for a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors not using the Big-integer and Exponential Function's.
How to Create a Treeview Menu in ASP.NET with C#?
how do i copy textbox contents of 1 form to another form
How to Create Files by Using the FileInfo Class?