title: Rails XML builder
body: <p>I have controller action in my rails application to output XML which in turn is used to generate a FusionChart. I am using a builder template for generating XML. Below is the code that is in builder template.  </p>
  
  <pre><code>xml = Builder::XmlMarkup.new  
  xml.chart(:palette=&gt;'2', ....) do  
   for item in @domain_data  
    xml.set(:label=&gt;item[:domain],:value=&gt;item[:emp_count])  
   end  
  end
  </code></pre>
  
  <p>This code throws error in all the browsers. When I move the code to controller and use the below snippet,   </p>
  
  <pre><code>xml = Builder::XmlMarkup.new  
      xml.chart(:palette=&gt;'2', :ca...) do  
       for item in @domain_data  
     xml.set(:label=&gt;item[:domain],:value=&gt;item[:emp_count])  
   end  
  end  
  send_data xml, :type=&gt;"text/xml"  
  </code></pre>
  
  <p>it works fine in Google Chrome/firefox etc but returns an empty file in Internet Explorer. Can somebody tell me what might be wrong here?  Thanks in advance // Abhi</p>