title: xml sitemap not displaying in xml format
body: <p>I want to display my sitemap in proper xml format but it displays in one line:</p>
  
  <pre><code>http://www.example.com/home 1.00 http://www.example.com/about 0.50 http://www.example.com/login 0.20 http://www. etc
  </code></pre>
  
  <p>not:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"&gt;
        &lt;url&gt;
          &lt;loc&gt;http://www.example.com/home&lt;/loc&gt;
          &lt;priority&gt;1.00&lt;/priority&gt;
        &lt;/url&gt;
        &lt;url&gt;
          &lt;loc&gt;http://www.example.com/about&lt;/loc&gt;
          &lt;priority&gt;0.50&lt;/priority&gt;
        &lt;/url&gt;
        etc.
  </code></pre>
  
  <p>My code in SitemapController:</p>
  
  <pre><code>&lt;?php
      class SitemapController extends Zend_Controller_Action
      {
              public function sitemapAction()
            {
              $this-&gt;_helper-&gt;layout-&gt;disableLayout();
              $this-&gt;getResponse()-&gt;setHeader('Content-Type', 'text/xml; charset=utf-8');
            }    
      }
  </code></pre>
  
  <p>Code in sitemap.phtml:</p>
  
  <pre><code>&lt;?php echo '&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xhtml="http://www.w3.org/1999/xhtml"
      xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"&gt;
        &lt;url&gt;
          &lt;loc&gt;http://www.example.com/home&lt;/loc&gt;
          &lt;priority&gt;1.00&lt;/priority&gt;
        &lt;/url&gt;
        &lt;url&gt; etc...
  </code></pre>
  
  <p>In my routes.ini:</p>
  
  <pre><code>resources.router.routes.sitemap.type = "Zend_Controller_Router_Route"
  resources.router.routes.sitemap.route = "/sitemap.xml"
  resources.router.routes.sitemap.defaults.module = "default"
  resources.router.routes.sitemap.defaults.controller = "sitemap"
  resources.router.routes.sitemap.defaults.action = "sitemap"
  </code></pre>
  
  <p>Based on earlier questions the disableLayout() in controller should have done it but has no effect on actual xml layout in view.</p>