Basically I wrote a script that generates a xml file based on user input. After the file is generated a download link appears like so:
It depends on what the client computer does with XML files. If you doubleclick on a XML file, it will open in your browser probably.