閱讀396 返回首頁    go 穀歌 go 穀歌新聞


穀歌新聞資訊站點地圖: 驗證 Google 新聞站點地圖

以下 XML 架構定義了可以在 Google 新聞站點地圖文件中出現的元素和屬性。Google 新聞站點地圖既可以包含 Google 新聞特定元素,也可以包含核心站點地圖元素。您可以通過以下鏈接下載這些架構:

適用於 Google 新聞特有的元素:https://www.google.com/schemas/sitemap-news/0.9/sitemap-news.xsd
適用於核心站點地圖元素:https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
有許多工具可以幫助您根據這些架構驗證站點地圖的結構。您可以訪問以下網址,查找 XML 相關工具的列表:

https://www.w3.org/XML/Schema#Tools
https://www.xml.com/pub/a/2000/12/13/schematools.html
要對照某個架構驗證您的 Google 新聞站點地圖文件,請在相應的 XML 文件中附加以下標頭:

<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
     xmlns:news="https://www.google.com/schemas/sitemap-news/0.9"
     xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="https://www.sitemaps.org/schemas/sitemap/0.9
       https://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
       https://www.google.com/schemas/sitemap-news/0.9
       https://www.google.com/schemas/sitemap-news/0.9/sitemap-news.xsd">
 <url>
    ...
 </url>
</urlset>

最後更新:2011-05-20 09:53:21

  上一篇:go 穀歌新聞資訊站點地圖: 提交新聞站點地圖
  下一篇:go 穀歌新聞資訊站點地圖: 創建新聞站點地圖