Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm using a tool to generate the sitemap.xml file for me, it started to crawl my website, got the pages and all images, but when exporting it, I review the XML (to make sure nothing is wrong) and I noticed that the images in my website are wrapped in URL tags (I think it should be in image tags).
See this:

<url><loc>http://mywebsite.com/images/12.jpg</loc><lastmod>2012-05-23T13:39:02+00:00</lastmod><changefreq>weekly</changefreq><priority>0.50</priority></url>
Shouldn't it be wrapped in image tag? (just like videos wrapped in video tag)

share|improve this question

2 Answers 2

up vote 2 down vote accepted

That doesn't look correct for images being listed in a sitemap, I would use another sitemap generator. The example below is from Google's Webmaster Central blog post about adding images to your sitemap

<?xml version="1.0" encoding="UTF-8"?>
  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
   xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>http://example.com/sample.html</loc>
    <image:image>
        <image:loc>http://example.com/image.jpg</image:loc>
    </image:image>
  </url>
</urlset>

And more information can also be found here about image sitemaps http://support.google.com/webmasters/bin/answer.py?hl=en&answer=178636

share|improve this answer
    
Yeah images are better in a separate image sitemap. –  DisgruntledGoat Jun 3 '12 at 11:43

If the tool is inserting images into loc it is either very old or configured incorrectly or buggy :)

You should, like others have said create separate image sitemap, video sitemap etc. that features such content.

share|improve this answer

protected by dan Mar 28 at 5:25

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.