XPS format consists of XML markup which explains visual representation or rendering rules for a document. In certain cases, you may need to merge or combine many XPS documents. For such use cases, this article covers how to merge XPS files programmatically in Java.