Try this codeyou can run directly in LINQPad to create a google sitemap