Chia nhỏ sitemap thành nhiều file , dành cho website với khối lượng lớn url
If you see this error, it means that we've detected that your root element doesn't specify the default namespace. The namespace should be specified as follows:
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
Some reasons why you may see this error are:
the namespace may be missing the namespace may be declared incorrectly (for instance, the namespace may end in ".9" rather than in "0.9").
A Sitemap file should begin as follows:
Code:
A Sitemap index file should begin as follows:
Code:
Sitemap index file
The XML format of a Sitemap index file is very similar to the XML format of a Sitemap file. The Sitemap index file uses the following XML tags:
- the parent tag surrounds the file.
- the parent tag for each Sitemap listed in the file (a child of )
- the location of the sitemap (a child of )
- the last modified date of the sitemap (optional)
See the Sitemap Protocol for more information.
Sample XML Sitemap Index
The following example shows a Sitemap index in XML format. The Sitemap index lists two Sitemaps:
Code:
http://www.example.co.uk/sitemap1.xml.gz
2004-10-01T18:23:17+00:00
http://www.example.co.uk/sitemap2.xml.gz
2005-01-01