I expect the first example is just the web browser's rendering of the raw XML. Unless you're going to pump the XML through something that prettyfies it, I expect that's all you're going to get. Essentially, you'd need to associate XML files with some other application in order for that application to own them when you launch the link.