homepage Welcome to WebmasterWorld Guest from 54.166.122.65
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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#: 4529808 posted 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

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4529808 posted 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

WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month



 
Msg#: 4529808 posted 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

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4529808 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved