Forum Moderators: open

Message Too Old, No Replies

Error with sitemap.xml

         

todaou

2:41 am on Mar 27, 2007 (gmt 0)

10+ Year Member



Hi,

I'm trying to publish this simple sitemap:

<?xml version="1.0" encoding="UTF-8"?>
< urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
< url>
< loc>http://www.example.tv/index.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
< priority>0.8</priority>
</url>

< url>
< loc>http://www.example.tv/av_equipment_rentals_nyc.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/audio_rentals_nyc.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/video_equipment_rentals_nyc.html/</loc>
< lastmod>2007-03-21</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/lighting_equipment_rentals_nyc.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/projector_rentals_nyc.html/</loc>
< lastmod>2007-03-21</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/walkie_talkie_rentals_nyc.html/</loc>
< lastmod>2007-03-14</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/eq_internet.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/cell_phone_rentals_nyc.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/pricelist.html/</loc>
< lastmod>2007-03-14</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/video_services_nyc.html/</loc>
< lastmod>2007-03-14</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/video_production_nyc.html/</loc>
< lastmod>2007-03-14</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/video_editing_nyc.html/</loc>
< lastmod>2007-03-14</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/dvd_production_nyc.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/motion_graphics_nyc.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/color_correction_nyc.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/event_videotaping_nyc.html/</loc>
< lastmod>2007-03-26</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/vod_nyc.html/</loc>
< lastmod>2007-03-26</lastmod>
< changefreq>monthly</changefreq>
</url>

< url>
< loc>http://www.example.tv/happy.html/</loc>
< lastmod>2007-03-19</lastmod>
< changefreq>monthly</changefreq>
</url>
</urlset>

but I get the follwoing error message:

This page contains the following errors:

error on line 1 at column 38: xmlParseStartTag: invalid element name
Below is a rendering of the page up to the first error.

Any suggestions how to fix it?

Thank you!

[edited by: encyclo at 4:03 pm (utc) on Mar. 27, 2007]
[edit reason] no URLs please, see TOS [webmasterworld.com] [/edit]

cmarshall

10:58 am on Mar 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This looks like a namespace issue. I ran into exactly the same thing.

You should create a schema for it, and then associate it with a namespace [w3.org].

I'm no expert, but I'm working on it.

You can look at the small example I've posted here [webmasterworld.com], and see if it helps.

cmarshall

3:22 pm on Mar 27, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I also PMed you a URI to the XML Namespace FAQ. It's on someone's consulting shingle, so I can't post it here, as per TOS.