Does this entire thing has to be pasted on the top before all the URLs pages? <?xml version="1.0" encoding="UTF-8" ?> - <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> OR We can simply use the following: <?xml version="1.0" encoding="UTF-8"?> < urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> < url> < loc>http://www.example.com/index.html</loc> < changefreq>weekly</changefreq> < priority>0.5</priority> </url>
Out of these two which one to use and what's the difference? <?xml version="1.0" encoding="UTF-8"?> < urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> OR <?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
If you want an example (and not use a sitemapper program) take a look at: http://www.micro-sys.dk/sitemap.xml
Still not clear. If I paste script coding like this at the top followed by 50 pages URLs in sitemap.xml file, will this be ok? <?xml version="1.0" encoding="UTF-8"?> < urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> < url> < loc>http://www.example.com/index.html</loc> < changefreq>weekly</changefreq> < priority>0.5</priority> </url> and so on so forth....all the urls </urlset>
Yes - each separate page needs to be contained within < url> and < /url> tags (without the spaces) and all these need to be contained within the urlset tags. The first line containing the XML version appears only once.