problem with XML sitemap
Posted: Wed Jan 05, 2011 10:30 am
Within a script I'm working on, a page is added to the site map. When I view the site map in a browser, there is a line break that shouldn't exist before and after the url, as such:
If I click view source, the line breaks are gone:
If it makes a difference, here are the first two lines of the site map:
Any idea what's causing it? Does it matter?
Code: Select all
<urlset>
−<url>
−<loc>
http://domain.org/test-page-407.htm
</loc>
<lastmod>2011-01-05 10:19:02</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>Code: Select all
<url>
<loc>http://domain.org/test-page-407.htm</loc>
<lastmod>2011-01-05 10:19:02</lastmod>
<changefreq>monthly</changefreq>
<priority>0.5</priority>
</url>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">