serialize a class to xml

i have provided an example project to the solution. for creating an xml
file from a class