Welcome to WebmasterWorld Guest from 23.20.86.177

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)

Junior Member

10+ Year Member Top Contributors Of The Month

joined:Feb 4, 2004
posts:158
votes: 13


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>
<br>
<a href="http://www.mydomain.com/mypage.html"></a>

Can I do that?

Cheers

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

New User

10+ Year Member

joined:June 24, 2006
posts:6
votes: 0


Hi,

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 June 25, 2006 (gmt 0)

Junior Member

10+ Year Member Top Contributors Of The Month

joined:Feb 4, 2004
posts:158
votes: 13


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?

Thanks

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

Junior Member

10+ Year Member

joined:Mar 12, 2004
posts:58
votes: 0


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.

<url>
<loc>http://www.<example>.com/</loc>
<lastmod>2006-06-23T17:46:32+00:00</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>

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 June 25, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 12, 2004
posts:58
votes: 0


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 June 25, 2006 (gmt 0)

Junior Member

10+ Year Member Top Contributors Of The Month

joined:Feb 4, 2004
posts:158
votes: 13


Thank you KathheeSue!

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

<lastmod>2006-06-23T17:46:32+00:00</lastmod>

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 June 26, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 12, 2004
posts:58
votes: 0


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.

...

ummmmmm

....

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

?

so

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 June 26, 2006 (gmt 0)

Junior Member

10+ Year Member Top Contributors Of The Month

joined:Feb 4, 2004
posts:158
votes: 13


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

Preferred Member

10+ Year Member

joined:Sept 25, 2002
posts:407
votes: 0


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.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members