refactor xml helper logic to base exporter class and create implementations for xml and json exporting