In Microsoft Windows you can simple open up your web browser and print any opened website as XPS document using the Print function and selecting the Microsoft XPS printer. Documents in HTML format can be exported same way in their respective programs.
On other platforms you probably will first need to convert HTML to PDF and then PDF to XPS as XPS is only supported natively in Windows.