title: Implement Image Sitemap using MvcSiteMapProvider 4
body: <p>I use MvcSiteMapProvider in order to implement a dynamic Sitemap for our site. The site has a constantly updated collection of articles, and each one is represented as a different page. Thus we use MvcSiteMapProvider in order to have a dynamically generated sitemap.xml. The problem, however, is that we have added images to the articles, that we want to add to the sitemap.xml so that they can be indexed as well.</p>
  
  <p>What I need to achieve is generate a structure like the one described for adding image urls to sitemaps, i.e:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
   &lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
    xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"&gt;
   &lt;url&gt;
     &lt;loc&gt;http://example.com/sample.html&lt;/loc&gt;
     &lt;image:image&gt;
       &lt;image:loc&gt;http://example.com/image.jpg&lt;/image:loc&gt;
     &lt;/image:image&gt;
     &lt;image:image&gt;
       &lt;image:loc&gt;http://example.com/photo.jpg&lt;/image:loc&gt;
     &lt;/image:image&gt;
   &lt;/url&gt; 
  &lt;/urlset&gt; 
  </code></pre>
  
  <p>Currently my DynamicNode generation code is like this</p>
  
  <pre><code>public override IEnumerable&lt;DynamicNode&gt; GetDynamicNodeCollection(ISiteMapNode node)
  {
      List&lt;Article&gt; articles = new List&lt;Article&gt;();
      using(siteMapHelperDB db = new siteMapHelperDB())
      {
          articles = db.GetArticleSiteMapNodes();
      }
      foreach(Article item in articles)
      {
          var dynamicNode = new DynamicNode();
          dynamicNode.Title = item.urlName; // URL Friendly title
          dynamicNode.RouteValues.Add("id", string.Format("{0}/{1}", item.ID, item.urlName));
  
          yield return dynamicNode;
      }
  }
  </code></pre>
  
  <p>My Mvc.Sitemap description is this:</p>
  
  <pre><code>&lt;mvcSiteMapNode title="Articles" controller="Articles" action="Show"
                  dynamicNodeProvider="ArticlesKB.ArticlesNodeProvider, ArticlesKB"/&gt;
  </code></pre>
  
  <p>All this works great so far. What I need now is to find out, how do I actually add the <code>&lt;image:image&gt;</code> nodes per each article.</p>
  
  <p>Is this currently supported in MvcSiteMapProvider 4? If it is, what do I need to do to implement it?</p>
  
  <p>Thanks!</p>