modifying a single field name data's in a xml file

Jan 6 2005 11:20 PM
Hi I have done a program such that the program asks for a xml schema file. Then we have to give out the schema file. the program reads the schema file (for all field names) and according to their datatypes, it automatically creates data's for each fields in a new xml file(about 200 data's). For example: "FIRST XML FILE" for string datatype -> say field name "Name( john1,john2,john3...etc)" for about 200 values for decimal -> say field name "Salary(9120.88, 9120.89, 9120.90 ..etc)" for about 200 values.This will be our resultant xml. Leave this apart. "SECOND XML FILE" Now we have another xml file with some field name and data's seperately. This has about 200 values for each field. In this xml file we have a fieldname called "Name". So what I want to do is , that coming to my program , My program while reading the schema file , when it comes across the fieldname "Name" then it should read the "SECOND XML FILE" and copy the fieldname "Name" (ie, its data's ) and insert the values into the "FIRST XML FILE" field name "Name". The others should be the same. This is my requirement. I tried a lot but i couldnt suceed. Pls help me to do this. santhosh