2010-09-25 110 views
0

Bing是否允許使用圖片的網站地圖?試圖向Bing提交站點地圖:這個錯誤是什麼意思?

我正在將我的站點地圖提交給Bing。但是,我得到這個錯誤:

We were unable to add your sitemap because: Http status code: 200 Severity: Error Line: 1292 Position: 12 Message: The 'http://www.sitemaps.org/schemas/sitemap/0.9:loc' element is invalid - The value '' is invalid according to its datatype 'http://www.sitemaps.org/schemas/sitemap/0.9:tLoc' - The actual length is less than the MinLength value. Severity: Error Line: 1596 Position: 6 Message: The element 'image' in namespace 'http://www.sitemaps.org/schemas/sitemap-image/1.1' has invalid child element 'geo_location' in namespace 'http://www.sitemaps.org/schemas/sitemap-image/1.1'. List of possible elements expected: 'license' in namespace 'http://www.sitemaps.org/schemas/sitemap-image/1.1'.

這個錯誤是什麼意思?

我的sitemap.xml是這種格式。我已將其縮減爲一頁的示例:

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

    <url> 
    <loc>http://www.mysite.com/#</loc> 
    <lastmod>2010-09-23</lastmod> 
    <changefreq>daily</changefreq> 
    <priority>1.0</priority> 
    <image:image> 
     <image:loc>http://www.mysite.com/images/theplace.jpg</image:loc> 
     <image:caption>This is the place</image:caption> 
     <image:geo_location>Place, State</image:geo_location> 
    </image:image> 
    </url> 
</urlset> 

謝謝。

-Laxmidi

回答

0

這是谷歌目前唯一的搜索引擎,它支持圖片站點地圖。其他搜索引擎可能會成功解析這些站點地圖,但他們可能會忽略與站點地圖擴展相關的標籤。

請注意,在您的示例中存在錯誤,並且很可能是因爲Bing導致解析困難的原因。圖象模式樞紐位於http://www.google.com/schemas/sitemap-image/1.1/

也就是說,你需要更換下列位:

xmlns:image="http://www.sitemaps.org/schemas/sitemap-image/1.1" 

xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" 
+0

了Methode,謝謝你的幫助。 – Laxmidi 2010-09-28 14:39:51