Last post Jul 09, 2008 08:21 AM by js8765
Jul 09, 2008 08:21 AM|js8765|LINK
I have set up my web to generate a search sitemap from an existing ASP.NET sitemap (using the
AspNetSiteMapSearchSiteMapProvider class and everything works fine.
However, I would like to programatically modify some of the rendered xml on the SearchSiteMaps.axd in some way, maybe in a way that is similar to how I would do it for an .aspx page
Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter)
Dim stringWriter As System.IO.StringWriter = New System.IO.StringWriter
Dim htmlWriter As HtmlTextWriter = New HtmlTextWriter(stringWriter)
Dim html As String = stringWriter.ToString()
html = html.Replace("/my/physical/url", "/myVirtualUrl")
Does anyone know if this is possible?
Basically, I want to replace the some physical urls with virtual urls in the <loc> attributes.
Thanks in advance for any help on this,