xml partial issue

I am using a partial for an xml page, but the xml.instruct is not
showing up:

Main xml file:

xml.instruct! :xml, :version=>"1.0"

xml << render(:partial => 'success_error', :locals => {:x =>
@x, :p_xml => xml})


p_xml.response do
  p_xml.tag!(x[:type]) do
    p_xml.message x[:msg]

When I view the page the xml shows up but not the header. When I
right click and view source then I can see the header info.

Sounds like it's just the way your browser is choosing to display the


Well it is odd, if I put the code in the main view it shows up.