Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Google XML Sitemap coding errors

please help!

         

gailnestor

11:30 am on Jul 16, 2006 (gmt 0)

10+ Year Member



Hi, I have created a new XML Google site map, but I can't get it to pass the W3C Validator. Also, Google says it has errors which I need to fix.

Each line in the site map I want Google to follow is formatted like this:
<url>
<loc>http://www.example.net/find.php?mylastname=ADAMS&amp;lnqualify=equals&amp;mybool=AND&amp;showspouse=yes</loc>
</url>
<url>

The validator seems to have a problem with my opening statement. I have:
<?xml version="1.0" encoding="utf-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">

I know it needs a document type to be defined, but each one I choose seems to be wrong.

If you can help, I sure would appreciate it.
Gail

<Sorry, no specifics - use example.net.
See Forum Charter [webmasterworld.com]>

[edited by: tedster at 1:35 pm (utc) on July 16, 2006]

mikedee

3:07 pm on Jul 16, 2006 (gmt 0)

10+ Year Member



Google sitemaps are not validated by the W3C. You will need to find some other way to validate the sitemap xml.

BillyS

5:19 pm on Jul 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not just use a sitemap generator?

<Forum Charter [webmasterworld.com]>

[edited by: tedster at 9:08 pm (utc) on July 16, 2006]

rbacal

9:01 pm on Jul 16, 2006 (gmt 0)



I vaguely recall this problem with some other xml files, and someone helped me out. For me I was getting xml errors because I had to tell my SERVER about a mime/datatype so it would serve up the xml file properly. Someone in the rss forum here provided me with the explanation, and I implemented it in my .htaccess file, and that solved that particular datatype problem.

Sorry I can't be more detailed.