/googlenews/community?hl=en
/googlenews/community?hl=en
2/16/10
Original Poster
Roland Hutchinson

Incorrect namespace Error Message Showing In Webmaster Tools For Google News Sitemap

Hi Guys

I am getting the following error message in webmaster tools for my Google News Sitemap.

http://www.geeky-gadgets.com/google-news-sitemap.xml


Incorrect namespace
Your Sitemap or Sitemap index file doesn't properly declare the namespace.

I am using a Wordpress Plugin to generate my Google News Sitemap and it has been working ok until today.

Has something changed in the way the sitemap should be configured?

Many Thanks

Roland
Geeky Gadgets
Community content may not be verified or up-to-date. Learn more.
All Replies (7)
2/16/10
Original Poster
Roland Hutchinson
Hi Guys

I have been looking into this further, and have checked my sitemap format and it is per the Google News guidelines.

One thing I did notice is that this url which is in the Google News Sitemap format is now showing as 404 page not found on Google.

http://www.google.com/schemas/sitemap-news/0.9

Anyone have any idea if this would have anything to do with it ?

Many Thanks

Roland


methode
2/16/10
methode
Hello Fatgadget,

That's actually not a problem. Please compare the news sitemap structure from your hostname with the one I linked to below.
You'll much likely understand the issue.

2/16/10
Original Poster
Roland Hutchinson
Hi Methode

Thanks very much for your reply.

I have had a look at my sitemap and the suggested Google one from your link, but I cant seem to spot the difference, I am sure I am missing something.

I cant quite work out exactly what it is in my sitemap that is causing the problem.


Many Thanks

Roland
methode
2/16/10
methode
K, lookie here, I'll mark with bold the differences:

Your sitemap:
++++++++++++++++++++

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>http://www.geeky-gadgets.com/remote-controlled-millennium-falcon-16-2-2010/</loc>
<news>
<publication>
<name>Geeky Gadgets</name>
<language>en</language>
			</publication>
<publication_date>2010-02-16</publication_date>
<title>Remote Controlled Millennium Falcon </title>
<keywords>Gadgets, Geeky Toys</keywords>
</news>
</url>
[...]

Sitemap example from Help Center:
++++++++++++++++++++++++++++++++++++++++

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:n="http://www.google.com/schemas/sitemap-news/0.9">
<url>
<loc>http://www.example.org/business/article55.html</loc>
<n:news>
<n:publication>
<n:name>The Example Times</n:name>
<n:language>en</n:language>
</n:publication>
<n:access>subscription</n:access>
<n:genres>pressrelease, blog</n:genres>
<n:publication_date>2008-12-23</n:publication_date>
<n:title>Companies A, B in Merger Talks</n:title>
<n:keywords>business, merger, acquisition, A, B</n:keywords>
</n:news>
</url>
[...]


I smell that WMT now looks for the "N" XML Namespace but in your sitemap it can't find it (as it doesn't exist)


I hope that formatting will be ok else I will convince my cat to commit suicide...
Th3F1rSt
2/17/10
Th3F1rSt
thx! works now for me

here is my code:

    $xmlOutput.= "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"
            xmlns:n=\"http://www.google.com/schemas/sitemap-news/0.9\">\n";


// Output sitemap data
    foreach($rows as $row){
        $xmlOutput.= "\t<url>\n";
        $xmlOutput.= "\t\t<loc>";
        $xmlOutput.= get_permalink($row->ID);
        $xmlOutput.= "</loc>\n";
        $xmlOutput.= "\t\t<n:news>\n";
       
        $xmlOutput.= "\t\t\t<n:publication>\n";
        $xmlOutput.= "\t\t\t\t<n:name>";
        $xmlOutput.= htmlspecialchars(get_option('blogname'));
        $xmlOutput.= "</n:name>\n";
        $xmlOutput.= "\t\t\t\t<n:language>";
        $xmlOutput.= get_option('rss_language');
        $xmlOutput.= "</n:language>\n";
        $xmlOutput.= "\t\t\t</n:publication>\n";
        $xmlOutput.= "\t\t\t<n:publication_date>";
        $thedate = substr($row->post_date_gmt, 0, 10);
        $xmlOutput.= $thedate;
        $xmlOutput.= "</n:publication_date>\n";
        $xmlOutput.= "\t\t\t<n:title>";
        $xmlOutput.= htmlspecialchars($row->post_title);
        $xmlOutput.= "</n:title>\n";
        $xmlOutput.= "\t\t\t<n:keywords>";
       
        //Use the categories for keywords
        $xmlOutput.= get_category_keywords($row->ID);
       
        $xmlOutput.= "</n:keywords>\n";
        $xmlOutput.= "\t\t</n:news>\n";
        $xmlOutput.= "\t</url>\n";
    }
2/17/10
Original Poster
Roland Hutchinson
Hi Guys

Thanks very much for your help, that did the trick.

I have emailed this thread to the developer of the wordpress plugin.

Thanks again.

Cheers

Roland

methode
2/17/10
methode
Thanks, Roland!
Were these replies helpful?
How can we improve them?
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Expert - Google Employee — Googler guides and community managers
 
Expert - Community Specialist — Google partners who share their expertise
 
Expert - Gold — Trusted members who are knowledgeable and active contributors
 
Expert - Platinum — Seasoned members who contribute beyond providing help through mentoring, creating content, and more
 
Expert - Alumni — Past members who are no longer active, but were previously recognized for their helpfulness
 
Expert - Silver — New members who are developing their product knowledge
Community content may not be verified or up-to-date. Learn more.

Levels

Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.