write input and output 'format' to XML in moduleToXML