I think the simplest way if you have xml sample and dont know how to write class, is to use xsd.exe tool to generate classes.
- First extract shema using commandxsd.exe your.xml
- Second generateclasses from generated schema usingcommand xsd.exe your.xsd /classes
Its very helpfull when you have big xml schema and dont want to spend many time to write classes for serialization.