homepage Welcome to WebmasterWorld Guest from 54.205.160.82
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
Convert sitemap to html page on website
Convert sitemap to html page on website
heyclifford




msg:4529810
 5:52 am on Dec 20, 2012 (gmt 0)

I will like to convert my sitemap file to viewable hmtl file on my site so my visitors can utilize it..

Any suggestions on how I can do this?

 

bill




msg:4529816
 6:37 am on Dec 20, 2012 (gmt 0)

What format is your sitemap in? I assume it's not HTML, but it could be XML or plain-text format, or an RSS or Atom feed. How is your sitemap generated?

lucy24




msg:4529840
 9:16 am on Dec 20, 2012 (gmt 0)

Depends how pretty you want the html page to be. Any text editor that does Regular Expressions should be able to crank it out for you. Including fancy business for different directories, if that's the kind of thing you want.

PROBLEM. Your sitemap-- in any form-- only gives the filename for each page. For humans you will probably want to use the page title instead. And that brings you into a whole new layer of complicatedness.

g1smd




msg:4529847
 9:37 am on Dec 20, 2012 (gmt 0)

A few lines of PHP can read in the XML file and generate a HTML tagged list and the various page elements around it.

Page names are a problem. You'd need to look those up in an array or in a database. In that case, you'd generate both the XML sitemap and the HTML sitemap from that data anyway.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved