What is wrong?
« on: March 13, 2010, 10:26:35 PM »
Hi friends, I am new...

I created a sitemap.xml, and using a txt editor he are ok, like that:

<?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">
<url>
  <loc>http://mba-open-university.com</loc>
  <lastmod>2010-03-01T00:18:21+00:00</lastmod>
  <changefreq>weekly</changefreq>
</url>
etc, etc.

And uploaded.

I do not understand:

If I read in the site, with a txt editor, all are ok.

But if I read with a browser, I get that:
<?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">
-<url>
  <loc>http://mba-open-university.com</loc>
  <lastmod>2010-03-01T00:18:21+00:00</lastmod>
  <changefreq>weekly</changefreq>
</url>
etc, etc.

See the -<url and -<urlset ?

I tried to validate, and get an error:

Error: Expected whitespace after public id
 in unnamed entity at line 1 char 62 of http://mba-open-university.com


Please help, I am new in this sitemap subject. What I need to change, to fix the above error?

Thanks!

« Last Edit: March 13, 2010, 10:32:38 PM by cbrito »