+ Start a Discussion

Exporting an XML file from a Visualforce page

Does anyone know if there's a way to export data from a visualforce page (or some other way)? What I'm looking to do is to have a user select an account (and opportunity), and then be able to click a button (or link) on the page that will create an xml file that the user can save to their desktop that contains the information from the account they were viewing. Then the user would be able to take this information and import it into another (desktop) application. I don't know if this can be done directly with a VF page, or if I'd have to use some combination of VF with Javascript. Any help is appreciated!