Add method for create flat xml file