remove duplicate code in XpsExporter
Merge pull request #235 from tibel/XpsExporter_DuplicateCode

remove duplicate code in XpsExporter