dynamically create sitemap xml using php

Posted by rekhasathvika on Stack Overflow See other posts from Stack Overflow or by rekhasathvika
Published on 2010-06-13T07:12:04Z Indexed on 2010/06/13 7:22 UTC
Read the original article Hit count: 293

Filed under:
|
|

Hi,

I have created sitemap for my site using some reference code in the below link

http://stackoverflow.com/questions/2747801/creating-an-xml-sitemap-with-php

But I am getting error as

XML Parsing Error: undefined entity Location:

as my content is as follows

<< alt >> attribute and it says something like

< loc >http://www.example.com/700- & laquo;alt & raquo;-attributes-in-images.php< /loc >

Can anyone tell me how to get rid of this error.

© Stack Overflow or respective owner

Related posts about entity

Related posts about sitemap