code stubs for writing xml, csv