<?
	header(sprintf("Content-type:text/%s;charset=%s", "xml", "utf-8")); echo '<?xml version="1.0" encoding="utf-8"?>'; 

	include "{$_SERVER['DOCUMENT_ROOT']}/common/config.php";
	include "{$_SERVER['DOCUMENT_ROOT']}/class/Article.php";

	$Article = new Article();

	$list = $Article->getMenuList();
?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?
	for($i = 0; $i < count($list['idx']); $i++) {
?>
   <url>
      <loc>http://www.sundofm.or.kr/page.php?idx=<?=$list['idx'][$i]?></loc>
      <lastmod><?=date("Y-m-d")?></lastmod>
      <changefreq>daily</changefreq>
   </url>
<?
	}
?>
</urlset>