private SitemapUrl GetPageUrl(int index)
        {
            SitemapUrl pageUrl = new SitemapUrl();
            pageUrl.Url = string.Format("http://mysite/page_{0}.aspx", index);
            pageUrl.Priority = 0.5F;
            pageUrl.LastModified = DateTime.Now;
            pageUrl.ChangeFrequency = SitemapChangeFrequency.Daily;

            return pageUrl;
        }
        /// <summary>
        /// Return the sitemap url node for the page
        /// </summary>
        /// <param name="objTab">The page being indexed</param>
        /// <returns>A SitemapUrl object for the current page</returns>
        /// <remarks></remarks>

        private SitemapUrl GetPageUrl(TabInfo objTab, string language)
        {
            SitemapUrl pageUrl = new SitemapUrl();
            pageUrl.Url = CommonLibrary.Common.Globals.NavigateURL(objTab.TabID, objTab.IsSuperTab, ps, "", language);

            if (pageUrl.Url.ToLower().IndexOf(ps.PortalAlias.HTTPAlias.ToLower()) == -1)
            {
                // code to fix a bug in dnn5.1.2 for navigateurl
                if ((HttpContext.Current != null))
                {
                    pageUrl.Url = Globals.AddHTTP(HttpContext.Current.Request.Url.Host + pageUrl.Url);
                }
                else
                {
                    // try to use the portalalias
                    pageUrl.Url = Globals.AddHTTP(ps.PortalAlias.HTTPAlias.ToLower()) + pageUrl.Url;
                }
            }
            pageUrl.Priority = GetPriority(objTab);
            pageUrl.LastModified = DateTime.Now;
            pageUrl.ChangeFrequency = SitemapChangeFrequency.Daily;

            return pageUrl;
        }