Welcome to WebmasterWorld Guest from

Forum Moderators: mack

Message Too Old, No Replies

Sitemap For MSN

I have a nice Google XML sitemap, want to convert for MSN

8:56 pm on Jun 24, 2006 (gmt 0)

10+ Year Member

I have about 1,000 pages to make a sitemap for MSN (and Yahoo too).

I have a nice Google XML sitemap built (Thanks to wordpress plugin).

Basically, I can fetch the links from it via url extractor and clean it with a text editor, but I can't seem to find any definitive info on creating a sitemap for yahoo and msn. Could someone point me to a Hands on Tutorial (with code examples) for the format.

Do i use bullets? Can I just put links on the page (how many etc) do I have to put Anchor text for those links, make catagories? Etc etc.

I basically just want to toss up just the links.

like this:

<a href="http://www.mydomain.com/mypage2.html"></a>
<a href="http://www.mydomain.com/mypage.html"></a>

Can I do that?


11:16 pm on Jun 24, 2006 (gmt 0)

5+ Year Member


For yahoo sitemap you can use "Site Map Builder .Net" program.

But i am also looking for info to create sitemap for Msn. And where to submit sitemap for msn.

1:00 am on Jun 25, 2006 (gmt 0)

10+ Year Member

Ummm, thanks for the plug to some windows software, but I am on a Macintosh, and I don't mind doing this by hand.

I need someone here to post some sample code from one of their successful sitemaps, so i can finish the doc here on my end.

Anyone willing to share?


5:46 pm on Jun 25, 2006 (gmt 0)

10+ Year Member

It should be fairly simple to use the sitemap.xml file and do a search and replace for multiple things.

It is trivial if you have a spreadsheet.


Remove all lines which contain <lastmod>
Remove all lines which contain <changefreq>
Remove all lines which contain <priority>
Search for <url> replace with <li>
Search for </url> replace with </li>
Search for <loc> replace with <a href=">
Search for </loc> replace with ">sometext</a>

In a spreadsheet, you can write a formula which copies the url again into the location which says "sometext" and be done. Otherwise, you need to find a way to put a descriptive, useful title into that location.

Once you have done that, you can simply add <ul> at the top and </ul> at the bottom of the list of urls and remove everthing else, format the page the way you want it to look, split it into ten or twelve pages with a navigation system (try to keep less than 100 links per page) and you should be done.

5:48 pm on Jun 25, 2006 (gmt 0)

10+ Year Member

PS: since OS X is UNIX-like, you might be able to use sed and grep and ¦ and > and things like that to do this in one line of code.
7:22 pm on Jun 25, 2006 (gmt 0)

10+ Year Member

Thank you KathheeSue!

Was just gonna ask you if you knew the grep command, been a while since I've done Grep...


obviously the time changes on each one

<lastmod>Grep Comman Here * someting...etc </lastmod>

Than kyou for taking the time to care and share...!

12:03 am on Jun 26, 2006 (gmt 0)

10+ Year Member

If you grep for the line containing <lastmod> and exclude those lines from the stream, you can then pipe that to the next command.

Be sure to make a backup copy before you do any of this.




grep -v <pattern> <filename> >> newfile.txt



grep -v lastmod originalfile.txt > newfile.txt

Once everything is gone that you don't want, maybe sed would work better for the substitution part?

1:25 am on Jun 26, 2006 (gmt 0)

10+ Year Member

It's Greek to me, thanks though....
1:47 am on Jun 26, 2006 (gmt 0)

10+ Year Member

put the sitemap in a directory by itself.

run this command:
grep -v lastmod sitemap.xml > newfile.txt

run this command
grep -v changefreq newfile.txt > newfile2.txt

run this command:
grep -v priority newfile2.txt > newfile3.txt

Now you should have a file called newfile3.txt which does not contain the lines which you don't want.

Pull it into a text editor and do search and replace for the other items mentioned above.


Featured Threads

Hot Threads This Week

Hot Threads This Month