Billy Coover

Creating a Site Map in MVC

March 20, 2011

I needed a to generate a site map today for some cool things we are planning for SideBox. I turned to, you guessed it, Stackoverflow and found a question about parsing an Atom feed with Linq which is exactly what I was looking for."

I needed a to generate a site map today for some cool things we are planning for SideBox. I turned to, you guessed it, Stackoverflow and found a question about parsing an Atom feed with Linq which is exactly what I was looking for.

Here is the code. I’m scraping content from Stackoverflow as an example:

Here are some important tips I learned about Google and how they process site maps:

I’m hoping to get some good analytics from this. I’m looking to see if feeding Google updated site maps in real-time as new content appears has an impact on overall traffic to our site. I’m also looking for any change in page ranking as a result. I suspect there wont be but it will be interesting to watch.

← Back home