# XML tags being converted to lowercase

**URL:** <https://www.ruby-forum.com/t/xml-tags-being-converted-to-lowercase/174114>\
**Category:** Rails\
**Created:** [August 21, 2009, 12:38am UTC](https://www.ruby-forum.com/t/xml-tags-being-converted-to-lowercase/174114 "2009-08-21T00:38:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 21, 2009, 12:38am UTC](https://www.ruby-forum.com/t/xml-tags-being-converted-to-lowercase/174114/1 "2009-08-21T00:38:47Z")

</div>

I have the following method to deliver an xml response:

def xslt\_layout  
@ticket = Ticket.find\_by\_id(params[:id])  
render :text =\> “#{@ticket.xml}”, :layout =\> false, :filename =\> “#  
{@ticket.ticket\_number}.xml”, :content\_type =\> “application/xml”  
end

The xml is generated using Builder as a Ticket model method and has  
both camel case and upper case element names in it.  
Inspecting the xml using a script/console query shows the tag names in  
the correct case, but the Rails stack is converting them to lowercase  
e.g. becomes

How can I prevent this behaviour?

david

---

<div class="post-metadata">

**Author:** ![davidjrice](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@davidjrice](https://www.ruby-forum.com/u/davidjrice)\
**Post date:** [August 21, 2009, 12:46am UTC](https://www.ruby-forum.com/t/xml-tags-being-converted-to-lowercase/174114/2 "2009-08-21T00:46:24Z")

</div>

Problem solved - it’s the Safari DOM inspector that’s doing it.
