Why am I getting this error “one or more unbound namespace prefixes” for Sitemap.xml

3k Views Asked by At

I have submitted my sitemap.xml into google webmaster tools. We found error such as "The XML Sitemap cannot be parsed because it contains one or more unbound namespace prefixes. For example, this error is generated when is found in a Sitemap without prior xmlns:xhtml="http://www.w3.org/1999/xhtml"."

My sitemap url: http://www.cadservicesindia.com/sitemap.xml

2

There are 2 best solutions below

0
On

Had the same issue. Try adding this at the top

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3
On

Looks like this first line in your XML file is mis-formatted. It seems to have the url pasted twice, likely by mistake:

<urlset xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9             http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

try this line instead:

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">