I have the following sitemap which I have put together mostly following the google guidelines, and even doing it exactly like google have it in the link below, it still creates a lot of validation errors, here is my sitemap:
https://support.google.com/webmasters/answer/2620865?hl=en
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://www.cristalstandards.com/</loc>
<priority>1.00</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/about/index</loc>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/about/index"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/about/clients</loc>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/about/clients"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/about/news</loc>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/about/news"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/about/group</loc>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/about/group"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/systems/index</loc>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/systems/index"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/systems/ecristal</loc>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/systems/ecristal"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/systems/cristalcheck</loc>
<priority>0.5</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/systems/cristalcheck"/>
</url>
<url>
<loc>http://www.cristalstandards.com/en/legal/index</loc>
<priority>0.0</priority>
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es/legal/index"/>
</url>
</urlset>
The first one is unique, but the ones below the first one is a multiple error
<xhtml:link rel="alternate" hreflang="es" href="http://www.cristalstandards.com/es"/> ^ Error 1845: Element '{http://www.w3.org/1999/xhtml}link': No matching global element declaration available, but demanded by the strict wildcard. on line: 12 column: 0 />
^ Error 1845: Element '{http://www.w3.org/1999/xhtml}link': No matching global element declaration available, but demanded by the strict wildcard. on line: 21 column: 0 />
^ Error 1845: Element '{http://www.w3.org/1999/xhtml}link': No matching global element declaration available, but demanded by the strict wildcard. on line: 30 column: 0
Then again though, I’ll run it through another validator called Yandex and it validates fine, so not sure if its an issue or not