Put back writing of XML