title: Google sitemap HrefLang tag without the main site url
body: <p>We have websites with multilingual content. </p>
  
  <p>e.g.</p>
  
  <ul>
  <li><a href="http://www.example.com/about-us/" rel="nofollow noreferrer">http://www.example.com/about-us/</a>    </li>
  <li><a href="http://www.example.com/en-HK/about-us/" rel="nofollow noreferrer">http://www.example.com/en-HK/about-us/</a>    </li>
  <li><a href="http://www.example.com/en-GB/about-us/" rel="nofollow noreferrer">http://www.example.com/en-GB/about-us/</a>    </li>
  <li><a href="http://www.example.com/zn-CH/about-us/" rel="nofollow noreferrer">http://www.example.com/zn-CH/about-us/</a></li>
  </ul>
  
  <p>We need to configure the hreflang tags in sitemap for Google to know that there are alternate links for the same pages in different languages.</p>
  
  <p>I know for the above example that my sitemap url tag would look like this:</p>
  
  <pre><code>  &lt;url&gt;
      &lt;loc&gt;http://www.example.com/about-us&lt;/loc&gt;
      &lt;xhtml:link rel="alternate" hreflang="en-GB" href="http://www.example.com/en-GB/about-us"/&gt;
      &lt;xhtml:link rel="alternate" hreflang="en-HK" href="http://www.example.com/en-HK/about-us"/&gt;
      &lt;xhtml:link rel="alternate" hreflang="zn-CH" href="http://www.example.com/zn-CH/about-us"/&gt;
      &lt;changefreq&gt;daily&lt;/changefreq&gt;
      &lt;priority&gt;0.8&lt;/priority&gt;
    &lt;/url&gt;
  </code></pre>
  
  <p>However, if I don't have the main url but just the last three ones with en-HK, en-GB and zn-CH, then how should my url tag look? Should I just skip the loc tag and keep the three xhtml:link tags? Or can I specify any url in the loc tag and put the remaining two in xhtml:link tags?</p>
  
  <p>I am new to Google sitemaps. Any help is greatly appreciated.</p>
  
  <p>Thanks,
  Rashmi</p>
  
  <p><strong>Edit</strong>: 
  From the answer posted on <a href="https://stackoverflow.com/questions/18423624/sitemap-for-domain-with-multilanguage-site/18423803#18423803">sitemap for domain with multilanguage site</a>, for my example with sites in en-HK, en-GB and zn-CH, should there be three url tags, with each of them assigned to loc with the other two in xhtml:link?</p>