Provide suggestion for Multilingual Sitemap

Dear Experts,

I own a website www.example.com which is completely in English Language. But I would like to spread my content to worldwide audience. For that, I am using Google Translate to create my website in Spanish Language (i.e) www.example.com/es-mx for Spanish audience.

Before start promote my website in Spanish Language, I need to submit Multilingual Sitemap in GWT. I really don’t know the exact procedure to do this…

Is the below sitemap.xml file is correct or should I need to change anything?

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <url>
    <loc>http://www.example.com/</loc>
    <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/es-mx"
                 />
   <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/es-mx/page1"
                 />
      <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/es-mx/page2"
                 />
      <xhtml:link
                 rel="alternate"
                 hreflang="de"
                 href="http://www.example.com/es-mx/page3"
                 />
  </url>
</urlset>

Please provide your valid suggestions…!

Is anyone here to help me on this?? I need immediate suggestion! Kindly post a reply!

Hi Dori Kutty, welcome to the forums and Happy Holidays

First thing I notice is hreflang=“de”
de is German not Spanish no?

Other that that it looks close to what I see at GWT and GWCB

What’s puzzling is that those don’t show examples for pages, but folders.

Yes, that is what my problem is! How do I make index for my inner pages (around 800+ pages)? Please do suggest me the right way to create this sitemap file!

The examples don’t seem to be very clear, but your first link:

says this, at the foot of the page:

You must create a separate url element for each URL. Each url element must include a loc tag indicating the page URLs, and an xhtml:link rel=“alternate” hreflang=“XX” subelement for every alternate version of the page, including itself.