title: Sitemap.xml with <xhtml:link rel="alternate" hreflang="" href=""/> for multilanguage does not render properly on browser?
body: <p>Generating a Sitemap with multiple languages:</p>
  
  <p>Following Google instructions from:</p>
  
  <p><a href="https://support.google.com/webmasters/answer/189077?hl=en" rel="nofollow noreferrer">https://support.google.com/webmasters/answer/189077?hl=en</a></p>
  
  <p><strong>THIS CODE:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"&gt;
    &lt;url&gt;
      &lt;loc&gt;https://www.example.com&lt;/loc&gt;
      &lt;lastmod&gt;${formattedDate}&lt;/lastmod&gt;
      &lt;changefreq&gt;daily&lt;/changefreq&gt;
      &lt;priority&gt;1.0&lt;/priority&gt;
    &lt;/url&gt;
  &lt;/urlset&gt;
  </code></pre>
  
  <p><strong>RESULTS IN (RENDERED IN THE BROWSER):</strong></p>
  
  <p><a href="https://i.stack.imgur.com/brJIU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/brJIU.png" alt="enter image description here"></a></p>
  
  <p><strong>THIS CODE (WITH THE <code>xhtml:link</code> TAGS):</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
    &lt;urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"&gt;
    &lt;url&gt;
      &lt;loc&gt;https://www.example.com&lt;/loc&gt;
      &lt;lastmod&gt;${formattedDate}&lt;/lastmod&gt;
      &lt;changefreq&gt;daily&lt;/changefreq&gt;
      &lt;priority&gt;1.0&lt;/priority&gt;
      &lt;xhtml:link rel="alternate" hreflang="en-us" href="https://www.example.com"/&gt;
      &lt;xhtml:link rel="alternate" hreflang="en-ca" href="https://ca.example.com"/&gt;
      &lt;xhtml:link rel="alternate" hreflang="en-gb" href="https://uk.example.com"/&gt;
    &lt;/url&gt;
  &lt;/urlset&gt;
  </code></pre>
  
  <p><strong>RESULTS IN (RENDERED IN THE BROWSER):</strong></p>
  
  <p><a href="https://i.stack.imgur.com/iJL6Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iJL6Q.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p><strong>QUESTION</strong></p>
  
  <p>There does not seem to be any errors. But it's weird that it doesn't render the XML "page" as usual in the browser.</p>
  
  <p>This <a href="https://www.google.com/gmail/sitemap.xml" rel="nofollow noreferrer">https://www.google.com/gmail/sitemap.xml</a> from Google also seems to have the same behavior (you can inspect it and see that the response contains a bunch of <code>xhtml:link</code> tags).</p>
  
  <p>Am I doing anything wrong or is it the normal behavior when you add those <code>xhtml:link</code> tags?</p>