^connect[$CONNECT]{
$m[^table::sql{select * from menu where active=1}]
$n[^table::sql{select * from news where active=1}]
$a[^table::sql{select * from airfields where active=1}]
}

<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

^m.menu{
   <url>
      <loc>https://$URL/^if(def $m.path){$m.path}{?id=$m.id}</loc>
   </url>
}


^n.menu{
   <url>
      <loc>https://$URL/news/$n.id</loc>
   </url>
}


^a.menu{
   <url>
      <loc>https://$URL/map/$a.id</loc>
   </url>
}


</urlset> 
