generating badges xml