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?
[b]

            String basepath = VaadinService.getCurrent()
            .getBaseDirectory().getAbsolutePath();
	
	String str = "file:\\" + basepath +   "\\WEB-INF\\documents\\test1.xml";
			
	BrowserFrame browser = new BrowserFrame("Browser",
            new ExternalResource(str));
        browser.setWidth("600px");
        browser.setHeight("400px");
        
        layout.addComponent(browser);

[/b]

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