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:

Shouldn't it be wrapped in image tag? (just like videos wrapped in video tag)


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"

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

  • 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.

protected by dan Mar 28 '15 at 5:25

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

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.