Create a valid site map with custom attributes

I am working on a site. There is a sitemap.xml file on my website. This file can be seen here .

If you scroll down, you will see a post urlthat includes some custom tags. These tags are prefixed blog:. The definition for the blog namespace can be seen here .

I submitted my Sitemap to Google Webmaster Tools. However, I get warnings around blog namespace entries. These warnings are displayed as shown below:

Warnings 

Invalid XML tag 

This tag was not recognized. Please fix it and resubmit. 

Parent tag: url
Tag: title 

Parent tag: url
Tag: description 

Parent tag: url
Tag: author 

Sitemap. , sitemap.xml . : ? , ? !

+4
3

: http://pics.jonathancross.com/sitemap.xml

, .

jcd:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
<urlset
    xmlns:jcd="http://pics.jonathancross.com"
    jcd:date="2015-09-16"
    xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url jcd:imgs="0" jcd:dsize="1.3G">
    <loc>http://pics.jonathancross.com/</loc>
    <lastmod>2015-09-16</lastmod>
    <priority>1.0</priority>
  </url>
  ...

desc :

<jcd:desc>Description of page here</jcd:desc>

Google -, - -, -, Sitemap, .

:

, . xslt , .

0

"" , , ?

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
** xmlns:blog="http://www.ecofic.com" **     
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9     
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd     
http://www.ecofic.com/resources/root/blog/1.0 
http://www.ecofic.com/resources/root/blog.xml">
0

:

<html xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:blog="http://www.google.com/2005/gml/b">
0

Source: https://habr.com/ru/post/1527500/


All Articles