Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml sitemap...i wrote my file, but i don't understand where

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
Code:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[URL unfurl="true"]http://www.mywebsite.com/">[/URL]
   <url>
      <loc>[URL unfurl="true"]http://www.mywebsite.com/my-site-article.html</loc>[/URL]
      <lastmod>2006-01-29</lastmod>
      <changefreq>weekly</changefreq>
      <priority>1.0</priority>
   </url>
</urlset>

that's my file...assuming i only had 1 link. but what i don't undersand is this line:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[URL unfurl="true"]http://www.mywebsite.com/">[/URL]

what is the urlset? does that just mean i put the location of the top most drectory that the xml file is? which, since this is the sitemap for the whole site, the url is going to be the main site, as i have?

i just need a little explaining i guess.

thanks.

- g
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top