private void Iterate(XmlWriter writer, SiteMapNode node, HttpContextBase httpContext, string applicationRoot) { WriteNode(writer, node, httpContext, applicationRoot); node.ChildNodes.Each(childNode => Iterate(writer, childNode, httpContext, applicationRoot)); }