Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Xml Sitemaps - I See Two Types Of Urlsets, And I Don't Know Which


  • Please log in to reply
1 reply to this topic

#1 websitebeginner

websitebeginner

    HR 1

  • Members
  • Pip
  • 8 posts

Posted 16 January 2011 - 02:01 PM

Hello,

I've been studying how to write a sitemap. From studying the information at sitemaps.org, it looks like the very top of the code should be written like this:

CODE
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">



However, when I went to xml-sitemaps.com, their code wizard said the very top of the code should look like this:
CODE
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">


Which one is the correct one to use? (This is for a simple xml sitemap, not something fancy like joining two sitemaps together).

Thanks for any ideas.

#2 qwerty

qwerty

    HR 10

  • Moderator
  • 8,573 posts
  • Location:Somerville, MA

Posted 16 January 2011 - 06:09 PM

I use the first example, but that's because the tool I use to generate the sitemap codes them that way. Whichever you choose, just make sure it's search engine friendly by submitting it in Webmaster Tools and checking to see if Google has issues with it.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

SPAM FREE FORUM!
 
If you are just registering to spam,
don't bother. You will be wasting your
time as your spam will never see the
light of day!