Update XML Exporter for a hierarchical and a flat format.