Я не вижу ошибку в моем xml сайте - PullRequest
0 голосов
/ 14 февраля 2012

Я сделал карту сайта, которую я в основном распечатываю из БД.

Я получаю сообщение об ошибке при проверке карты сайта Google, но не могу понять, почему. Надеюсь, что кто-то может помочь.

ошибка проверки:

----------------------------------------------------------------

Schema validator crashed
The maintainers of XSV will be notified, you don't need to send mail about this unless you have extra information to provide. If there are Schema errors reported below, try correcting them and re-running the validation.

    Length: 76774 bytes 
    Server: Microsoft-IIS/7.5)
The target was not assessed
Low-level XML well-formedness and/or validity processing output


Error: Expected name, but got `<space>` for entity

1 Ответ

3 голосов
/ 14 февраля 2012

Это потому, что у вас есть буквальный & в <loc> для Tropicana Golf & Country Resort.Вы должны заменить его на &amp;.

Это:

<url><loc>http://website/ad/541/Linked%20House%20For%20Rent%20in%20Tropicana Golf & Country Resort,%20Tropicana</loc></url>

Должно быть:

<url><loc>http://website/ad/541/Linked%20House%20For%20Rent%20in%20Tropicana Golf &amp; Country Resort,%20Tropicana</loc></url>
...