resolves #2 issue (export xml)