added format options to format_xml and added config section