# Rxml output to file not working in IE

**URL:** <https://www.ruby-forum.com/t/rxml-output-to-file-not-working-in-ie/111404>\
**Category:** Rails\
**Created:** [August 7, 2007, 12:13am UTC](https://www.ruby-forum.com/t/rxml-output-to-file-not-working-in-ie/111404 "2007-08-07T00:13:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e9c0ed/32.png) [@mark](https://www.ruby-forum.com/u/mark)\
**Post date:** [August 7, 2007, 12:13am UTC](https://www.ruby-forum.com/t/rxml-output-to-file-not-working-in-ie/111404/1 "2007-08-07T00:13:29Z")

</div>

(sorry I accidently posted this before it was finished the first time)

I want to use Builder (.rxml template) to generate xml but instead of  
having it display in the browser I want it to offer a file download.

I am using the following code in my controller:

respond\_to do |format|  
format.xml { render :layout =\> false, :content\_type =\>  
“application/octet\_stream”}  
end

This works as desired in Firefox, but in IE (both 6 and 7), it results  
in an error message, “The requetsed site is either unavailable or  
cannot be found” after opening the download progress dialog.

Any suggestions on getting this to work in IE?

Thanks,

Mark
