Modified xml output.
Moved formatters dict definition into main method.
Little refactor on xml_formatter.