Use xml serialiser library to serialise xml data