reading two or more xml filesusing xml document

Jan 21 2005 6:56 AM
Hi I have done a program such that it reads a xml schema and gets data from a input xml file and loads into a particular column, the values (for the existence of same field) in a new xml file. other fields are loaded with values automatically. Now I have to read one more xml file(another input xml file along with the first one and load into anoyther column fo rthe existence of that field) I have done for reading one xml file. How to read two or more at the same time. Here is my that part of the coding. please help me to do this. In the coding I have marked **************** in the middle, that is the part wher I have to read the input xml . so I need to read two or more files there. What shall I do. please help me to do that private void button2_Click(object sender, System.EventArgs e) { ArrayList FiledNames = new ArrayList(); XmlDocument xdc = new XmlDocument(); //Read the file which contain the field names xdc.Load(@"C:\CDEV\testdatagenerator\Field Names.xml"); XmlNodeList nodFields = xdc.DocumentElement.SelectNodes("//item"); for(int i=0; i

Answers (1)