Generate an xml output