i have a project with xml,i must open a xml file in tree view,i've done this,but now
i want to add node.i have a existing file witch i've open,and in this xml file i need to insert new node,can someone help me with this.
thank you very much
There are severals methods to add a node to your xml file including the use of the DOM(Document object models) methods so a propose this code I invite u to try it
suppose that we have an xml file
we want add
to the xml file
try to execute this method
public void Main()
XmlDocument doc = new XmlDocument();
XmlNode root = doc.DocumentElement;
//Create the E node.
XmlElement oNodeE = doc.CreateElement("E");
//Create the F node
XmlNode oNodeF = doc.CreateElement("F");
oNodeF.InnerText = "book4";
//Add the node to the document.
//Save the file contents
There is not only this method of corse u can use other alternatives using xmlwriter, text writer
and within the .Net framework 3.5 there is xLing
library witch simplify a lot the achivement of such task
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...