Welcome to WebmasterWorld Guest from 54.167.185.18

Forum Moderators: goodroi

Message Too Old, No Replies

Including Images in Sitemaps - XML Parsing

   
11:14 am on May 17, 2010 (gmt 0)

5+ Year Member



Has anyone tried adding images to a sitemap - [google.com ]

I've added some images to mine as Google's guideline suggests and I'm getting an xml parsing error when i try to view it in my browser (Firefox).

Anyone else also had any problems with this?
5:57 pm on May 17, 2010 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Have you run your Sitemap.xml file through an XML validator?
12:45 pm on May 18, 2010 (gmt 0)

WebmasterWorld Administrator goodroi is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



sitemaps can be fragile. one typo can cause havoc. i'd follow tedster's advice and head over to a sitemap validator.
2:52 pm on May 18, 2010 (gmt 0)

5+ Year Member



Just ran it through a validator and it's showing the same error -

Error: Element name image:image has unbound prefix
in unnamed entity at line 17 char 14 of http://www.example.com/sitemap.xml

Line 17 is where the first <image:image> tag begins.
8:41 am on May 20, 2010 (gmt 0)

5+ Year Member



This has been resolved now.

I double checked everything and found that i didn't include this code in the urlset tag "xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"