Quote from: lukwe at Mar 28, 2007, 04:33 AM
such output is not generated inside the Sitemap snippet php code, where should I go to edit that ?!
Ehm, when I look at the error code again, I see I was tricked by that instant thought about entities. I was wrong. However, I’m quite sure, the issue with entities notation in XML is true.
I think your error comes from elswhere. The first thing - SiteMap produces pure XML output, which doesn’t contain any HTML markup. It should look like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="sitemap.xsl"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
<url>
<loc>http://domain.com/index.html</loc>
<lastmod>2006-12-12</lastmod>
</url>
</urlset>
As you can see, there’s no place for the errorenous HTML markup you provided. If there is any then you are using not empty template, which contains HTML markup for either sitemap.xml or sitemap.xls or both. Double check it. Check the source of those two documents.
The second thing - your error comes from the MODx manager internal preview! This is indicated by the URL [tt]Location:
http://localhost/modx/index.php?id=1468&z=manprev[/tt]. Notice the [tt]&z=manprev[/tt] part. Don’t use the internal preview for your sitemap but check the live site!