title: How to debug a .xml extension as html in chrome?
body: <p>I am using a library that automatically creates a <code>sitemap.xml</code>.</p>
  
  <p>However when I go to <code>/sitemap.xml</code> I get an error on chrome:</p>
  
  <pre><code>This page contains the following errors:
  
  error on line 4 at column 16: AttValue: " or ' expected
  Below is a rendering of the page up to the first error.
  </code></pre>
  
  <p>The error on firefox is:</p>
  
  <pre><code>XML Parsing Error: not well-formed
  Location: http://example.dev/sitemap.xml
  Line Number 4, Column 16:   &lt;meta charset=utf-8 /&gt;
  ----------------------^
  </code></pre>
  
  <p>Yet when I inspect the response it has the normal site template <code>html</code> in it with an error:</p>
  
  <pre><code>&lt;h2&gt;Error 500&lt;/h2&gt;
  
  &lt;div class="error"&gt;
  Undefined index: lastmod&lt;/div&gt;&lt;/div&gt;&lt;!-- content --&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The <code>preview</code> shows the xml error.</p>
  
  <p>So how can I get chrome to display the html version, as it contains a stack trace and other good stuff to debug?</p>