The easiest way to get the XPS Document Writer on Windows XP is by installing the (or a later version like 3.5 SP1).
You can look for these installers on the official Microsoft Download Center or legacy archives like Internet Archive since official XP support has ended.
If you do not want to install the full .NET Framework, you can look for the .