XPS models often use "double-sided" faces. 3D printers require "manifold" geometry (watertight, one side).
The most reliable way to convert XPS models is using as an intermediary. xps 3d model converter
Depending on whether you are building a standalone tool or a plugin for a suite like Blender, Core Features to Implement XPS models often use "double-sided" faces