The xml serializer takes an object and parsed it in an well formed xml structure.