generate xml file