I have created a php script that will generate link to all pages of my site and I use it as my site map, but the problem I can't submit this in google site map tool. I need to covert it to xml format. Will you please post a sample how convert the output of my script into xml format.
Just use echo to generate your sitemap script if you already have the url and you know what priority have this urls just : echo ' <url> <loc>'.$url.'</loc> <lastmod>',$lastmod, '</lastmod> <changefreq>', $change_freq, '</changefreq>^ <priority>', $priority, '</priority> </url>'; Code (markup): Just study a xml sitemap and you will the the entire structure ... Regards