xml serializer (constructor only)