public void WriteSitemapContents(string OutputPath) { List <SitemapNode> RootNodes = new List <SitemapNode>(); if (bIsRootCategory) { RootNodes.Add(new SitemapNode("Contents", SitemapLinkPath)); } foreach (APIPage SubCategory in SubCategories.Values) { RootNodes.Add(SubCategory.CreateSitemapNode()); } foreach (APIPage Action in Actions) { RootNodes.Add(Action.CreateSitemapNode()); } Sitemap.WriteContentsFile(OutputPath, RootNodes); }