Esempio n. 1
0
        private static void AddSiteMapXmlLink(string url, HtmlTag xml)
        {
            var urlTag = new HtmlTag("url");
            var locTag = new HtmlTag("loc");

            locTag.SetInnerText(Fmt.UTF8Encode(Web.ResolveUrlFull(url)));
            urlTag.AddTag(locTag);
            var changefreqTag = new HtmlTag("changefreq");

            changefreqTag.SetInnerText("daily");
            urlTag.AddTag(changefreqTag);
            var priorityTag = new HtmlTag("priority");

            priorityTag.SetInnerText("0.5");
            urlTag.AddTag(priorityTag);
            xml.AddTag(urlTag);
        }