# XML not rendered after upgrade to 2.0.2

**URL:** <https://www.ruby-forum.com/t/xml-not-rendered-after-upgrade-to-2-0-2/134767>\
**Category:** Rails\
**Created:** [April 14, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/xml-not-rendered-after-upgrade-to-2-0-2/134767 "2008-04-14T23:09:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [April 14, 2008, 11:09pm UTC](https://www.ruby-forum.com/t/xml-not-rendered-after-upgrade-to-2-0-2/134767/1 "2008-04-14T23:09:17Z")

</div>

I’ve upgrades from Rails 1.2.6 to 2.0.2 (it’s about time) and am  
getting render problems on the .xml files.  
What I get is the XML layout with the HTML contents:

 logged in 
Login: logged in: 1
 \<\<-- this is the problem (comes from .rhtml)

The layout is:  
xml.instruct! :xml, :version=\>“1.0”, :encoding=\>“UTF-8”  
xml.info do  
xml.status(@status, :err\_code=\>@err\_code || 0)  
res = @content\_for\_layout  
if res  
xml \<\< @content\_for\_layout  
end  
end

And, in the controller, I have:  
respond\_to do |format|  
format.html do  
redirect\_after\_login(@status)  
end  
format.xml  
end

The contents of the .rxml file just doesn’t go out. What comes out as  
@content\_for\_layout is what’s in the .rhtml file. I’m calling /  
login.xml

What’s changed?

Thanks,  
Amir

---

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [April 14, 2008, 11:33pm UTC](https://www.ruby-forum.com/t/xml-not-rendered-after-upgrade-to-2-0-2/134767/2 "2008-04-14T23:33:47Z")

</div>

Sorry, just checked again. My render was fine in Rails 1.99.1 too.  
It’s broken moving from that to 2.0.2.

Amir

---

<div class="post-metadata">

**Author:** ![helzer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e19b73/32.png) [@helzer](https://www.ruby-forum.com/u/helzer)\
**Post date:** [April 15, 2008, 3:51pm UTC](https://www.ruby-forum.com/t/xml-not-rendered-after-upgrade-to-2-0-2/134767/3 "2008-04-15T15:51:34Z")

</div>

From the upgrade guide, I assumed that template rename is optional.  
The .rhtml files were OK, but the .rxml files are not found.

After renaming all .rxml to .xml.builder it works again.
