Viewing the archived documents
The archived expense reports are stored in the archive directory specified in the command prompt. The archived expense reports are stored in an XML format with the tracking number as the file name, for example: ER000123456.xml.
To view the archived documents, navigate to the Archive directory. Double click the document you want to view. The document is displayed in a browser window.
You also have the option to archive the output to pdf format. Configure the archive.pdfouput application parameter:
- If the value of the parameter is set to True, data is archived into three formats: .xml without stylesheet (xsl), .html, and .pdf.
- If the value of the parameter is set to False,data is archived into .xml format with
stylesheet (xsl). Note: Most browsers do not allow to run .xml with stylesheet (xsl) due to a security feature known as the Same-Origin Policy and displays a blank page. However, you can view .xml with the stylesheet (xsl) outputs using browser through a local web server.
You can also use Python to view an .xml with stylesheet (xsl) output. Perform these steps:
- Open Command Prompt.
- Change directory to the archive folder where the archive files resides.
- Run pythons with the python3 -m http.server 8001 command.
- Launch http://localhost:8001 with a browser.
- Click on any xml file to open the archived document detail.