homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

XML sitemaps encoded characters and GWT
GWT reports 1 URL indexed from all sitemaps

 4:11 pm on May 22, 2013 (gmt 0)

Following Google's own advice on XML sitemaps, I have encoded ampersands with & a m p ; (spaces so WebmasterWorld doesn't decode it)

Now, in Google Webmaster tools, all of my sitemaps have 1 URL indexed out of thousands, presumably the homepage.

Is there a disconnect in GWT where they don't reconcile that this URL:
is the same as
example.com/some?stuff& a m p ;more_stuff



 1:51 pm on May 23, 2013 (gmt 0)

Just a thought - the value of your <loc> elements aren't being enclosed in CDATA (unparsed character data) delimiters by your sitemap generator / script are they? If that was the case, & should not be entity encoded as &amp; since XML entities don't apply within CDATA. For example, without CDATA delimiters:


<loc> will be parsed as http://www.example.com/page.php?foo=1&bar=2

Whereas with CDATA delimiters:


<loc> will be "parsed" literally as http://www.example.com/page.php?foo=1&amp;bar=2


 9:13 pm on May 29, 2013 (gmt 0)

Thanks for the reply dmorison - nope, no CDATA in the sitemaps... they've been submitted for months now. All a bit strange.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved