XPS Document writer or viewer, by default, comes installed on Windows Vista and later versions of Windows.

How to Print to the XPS Document Writer

To do so, click on the File menu of a document or a file you want to print to .xps format and then click Print.

A Print dialog box will be visible on your computer screen. From it choose Microsoft XPS Document Writer. Here, I tried this with my Word 2013 file.

Now, to view the document using the XPS Viewer after you print it, click Preferences and then from the 2 tabs visible choose the ‘XPS Documents’ tab.

Next, check the box that says ‘Automatically open XPS documents using the XPS viewer’ if it is unchecked and then click OK.

Click Print to print the document or file. When requested, enter a file name and browse to the location where you want to save the .xps file. Click Save. Windows will save .xps files in your Documents folder by default.

If you would like to attach a digital signature to an XPS document before you send or share it, you can do so. Attaching a signature helps to identify the creator of the XPS document and prevents anyone from modifying it.

Additionally, you can also choose who can view the document and for how long by applying permissions before sharing the document. Hope this helps. Read:

Fix Microsoft XPS Document Writer not workingHow to Add or Remove Microsoft XPS Document Writer Printer.