Keith Pijanowski had a great article in MSDN magazine titled “Enrich Your XML Serialization With Schema Providers in the .NET Framework.” His article talks about the use of XML schemas for the purpose of serialization with classes. Using an XML schema removes some of the limitations I mentioned in a previous article about using XML serialization including the need for a set accessor.
This of course brings a new problem to the table. Where do you put the schema files? The most obvious choice is as content in separate XSD files. That, however, is that many more files to worry about during deployment. In this article I provide a helper class that you can use to retrieve your XML schemas from the embedded resources in an assembly.
Read the full article