Generate xml which format is kv.