using reflection save retrived data in xml file
hi all,
Is there any way to save xml file by iteration in defined format? rather than the way i mentioned below;
XmlDocument myDoc = new XmlDocument();
XmlElement root = myDoc.CreateElement("Employee");
myDoc.AppendChild(root);//root is variable got it value using reflection
XmlElement assmNode = myDoc.CreateElement("Name");
root.AppendChild(assmNode);//assmNode is varible too as root
Its too long and seems very strange to me... Please help.
Baby Prgrammer
__________________
Baby Prgrammer
|