Last post May 30, 2013 12:12 AM by dani.stipp
May 29, 2013 10:42 AM|dani.stipp|LINK
I am new to C# and XML field. I have a requirement which is as below.
I have output from a stored procedure.For example say below are the columns I am getting from stored procedure.(In real there are many columns from stored procedure. To simplify the requirement have mentioned few)
EmployeeId Fname Lname
Age JoinDate DOB Department
Now I want to create XML document using xml writter. which will look as below.
I want to create a configuration in c# code in such a way that if any new element or child element is added, it will added only in configuration. So that there will not be any code change. This is a tough task for me. Can anyone please help me here.
May 29, 2013 02:27 PM|Vipindas|LINK
You can create xml file using dataset. Refer this link
May 30, 2013 12:12 AM|dani.stipp|LINK
Thanks for the link.
I am looking to create some kind of template for the xml nodes in a class or by some other means. Because I may get new nodes/elements in later stages. So, if I create some kind of xml template by c# class or something else then I can only modify the template
and not the entire code. Hope you understood my requirement.
I have data from database. That is from stored procedure I get all data. Now if I maintain a template for xml node than I can push the data to xml and create the xml file. I want to know how can I create a template for xml node using a c# class or by some
other means. Please help.