The idea behind the .NET System.Xml.Serialization.XmlSerializer class is that you can easily serialize an XML file into a class tree and vice versa.
If you’re using XML Schema files, the xsd.exe tool can create that class tree for you.
But for simple applications you don’t even need a schema. You simply create a class that has public properties of simple types or complex types that in turn contain simple types.
Then you can throw this object into the XmlSerializer and you’re done. 🙂
Here’s my personal XmlSerializer coding pattern for a simple list of settings: