That's going to be tricky, they need to be rendered by the browser or a plugin to display correctly. Even if you get it to work on your end, every user would have to have an identical setup to use your site. The default browser behavior would be to download those file types.
I'd suggest to reformat them to xml or standard html instead and offer a download link.