Create a XML file on the fly