In your plugin file add this:
[php]
add_shortcode(‘oku-sitemap’, ‘okusitemap_handler’);
function okusitemap_handler(){
require_once(plugin_dir_path(__FILE__).’wooku-sitemap-common.php’);
$sitemap = sitemap_get_it(); //this function will echo whatever you want
return $sitemap;
}
[/php]
Then in a wp page you can call your shortcode using [oku-sitemap]