<loc><?php echo $siteurl?>/login.html</loc> <lastmod>2013-09-16T07:13:36+00:00</lastmod> <changefreq>daily</changefreq> <priority>0.8000</priority> </url> <url> <loc><?php echo $siteurl?>/register.html</loc> <lastmod>2013-09-16T07:13:36+00:00</lastmod> <changefreq>daily</changefreq> <priority>0.8000</priority> </url> <url> <loc><?php echo $siteurl?>/browse.html</loc> <lastmod>2013-09-16T07:13:36+00:00</lastmod> <changefreq>daily</changefreq> <priority>0.8000</priority> </url> <?php $browsearray = $dir->BrowseChallenges($categoryid,null,$sitename); for($i=0; $i < sizeof($browsearray) ; $i++){ $__slug = $browsearray[$i]['Slug']; ?> <url> <loc><?php echo $siteurl?>/challenge/<?echo $__slug?></loc> <changefreq>weekly</changefreq> </url> <?}?> </urlset>