예제 #1
0
        /// <summary>
        /// Writes Sitemap XML for the specified <see cref="SiteMapNode"/> and it's children.
        /// </summary>
        /// <param name="baseNode">The <see cref="SiteMapNode"/> to write Sitemap XML for.</param>
        public void WriteSiteMap(SiteMapNode baseNode)
        {
            WriteStartRootElement();

            Assembly googleSiteMapAssembly = Assembly.GetExecutingAssembly();

            _writer.WriteComment(string.Format("Generated by {0}", AssemblyUtils.GetCompleteProductName(googleSiteMapAssembly)));

            WriteUrlElements(SiteMap.RootNode);

            WriteEndRootElement();
        }