XML exporter update

changes made to the xml writter