title: Image Sitemap with Zend_Navigation
body: <p>I generate a Sitemap using Zend_Navigation and i wanted to add images to this sitemap, now i got no Idea how to get this done, i use following (working) code to generate the sitemap</p>
  
  <pre><code>foreach($sitemapItems as $item)
      {
          $newSite = new Zend_Navigation_Page_Uri();
          $newSite-&gt;uri = 'http://' . $_SERVER['HTTP_HOST'] . $item-&gt;getSpeakingUrl();
          $newSite-&gt;lastmod = $item-&gt;getUpdatedAt();
          $newSite-&gt;changefreq = 'weekly';
  
          $this-&gt;_navigation-&gt;addPage($newSite);
      }
  
      $this-&gt;view-&gt;navigation($this-&gt;_navigation);
      $this-&gt;view-&gt;navigation()-&gt;sitemap()-&gt;setFormatOutput(true);
  </code></pre>
  
  <p>The Output is as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt;
          &lt;url&gt;
              &lt;loc&gt;http://test.dev/pictures/site-28.html&lt;/loc&gt;
              &lt;lastmod&gt;2010-03-11T17:47:30+01:00&lt;/lastmod&gt;
              &lt;changefreq&gt;weekly&lt;/changefreq&gt;
           &lt;/url&gt;
           ....
  </code></pre>
  
  <p>I need the following Output inside the Url part</p>
  
  <pre><code>&lt;image:image&gt;
      &lt;image:loc&gt;http://example.com/image.jpg&lt;/image:loc&gt;
  &lt;/image:image&gt; 
  </code></pre>
  
  <p>i tried to just set </p>
  
  <pre><code>$newSite-&gt;image = URI
  </code></pre>
  
  <p>but it didnt work also i tried to add custom attribute via</p>
  
  <pre><code>$newSite-&gt;__set('image', array('loc' =&gt; URI));
  </code></pre>
  
  <p>Does anyone know if what i want is even possible ? i cant find anything in the docs or web...</p>
  
  <p>Thanks for your time,
  Dominik</p>