Show xml file in a BrowserFrame

Hi all,

I am trying to open an xml file which will be displayed as an xml file like IE or Fire Fox showing it. But Vaadin automatically rendering and displaying the xml content as normal text. Any ideas?

            String basepath = VaadinService.getCurrent()
	String str = "file:\\" + basepath +   "\\WEB-INF\\documents\\test1.xml";
	BrowserFrame browser = new BrowserFrame("Browser",
            new ExternalResource(str));


It’s probably not Vaadin, but the browser. Try setting a mimetype for your resource.