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 program to print the following outputs using for loops $ $ $ $ $ $ $ $ $ $ $ $ $ $ $
How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?
How to Link Different Data Sources Together?
write a Program to copy the string using switch case.
Write a program to count the number of characters, number of words, number of line in file.
Write a program which has a function and that function should take 2 or 3 or any number of strings and it should return the largest common prefix of all those strings. If there is no common prefix it should return an empty string. for eg:- INPUT OUTPUT glo {glory,glorious,glod} gl {glad,glow} {calendar,phone} empty string
Write a program to convert postfix expression to infix expression.
program to check if a number is "perfect number".
Can you declare an array of mixed Types?
Event Handling in C# Triggering a Button
Coding for using Nullable Types in C#?
program to reverse the order of words in a string.