I have a program in C#,and I want to use xml in it. I am very new to XML,I have a fairly large configuration data with lots of fields.I have managed to define a class based on my configuration fields,my class has lot of enums ,lists and user defined types.
Now I want to read/edit/modify/save the values in configuration,I am thinking of using an xml file. Can you give me some direction.Should I define a xml schema? What should be the design of my program? Or please suggest how to do this fast and clean through existing APIs like LINQ etc.
In a nut shell
Can you explain
How to save class with lot of fields to XML through C#? Do I need a schema? How to read it back in same class and validate through schema?
Approach should be simple and unit testable.