Click here to get back home

extract page structure from page source?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
extract page structure from page source? dubing 09-19-2006
Posted by dubing on September 19, 2006, 1:46 pm
Please log in for more thread options


Hi,

Given a page source, is there any tool that can make a sketch of the
page structure? Our template is DIV based. It's easy to get lost in
so many DIV's. Say, <div id="container"> can include other DIV's (e.g.
nav, content, righ-column, footer, etc.). Just by staring at the page
source, it's so hard to find the closing </div> for <div
id="container">. Any ideas?

Thanks in advance,

Bing


Posted by Harlan Messinger on September 19, 2006, 2:24 pm
Please log in for more thread options


dubing@gmail.com wrote:
> Hi,
>
> Given a page source, is there any tool that can make a sketch of the
> page structure? Our template is DIV based. It's easy to get lost in
> so many DIV's. Say, <div id="container"> can include other DIV's (e.g.
> nav, content, righ-column, footer, etc.). Just by staring at the page
> source, it's so hard to find the closing </div> for <div
> id="container">. Any ideas?

If you don't need printing and you're concerned about the document's
structure rather than the location of tags in the source, use Firefox
and download its DOM Inspector.

Posted by Ben C on September 19, 2006, 5:54 pm
Please log in for more thread options


> Hi,
>
> Given a page source, is there any tool that can make a sketch of the
> page structure? Our template is DIV based. It's easy to get lost in
> so many DIV's. Say, <div id="container"> can include other DIV's (e.g.
> nav, content, righ-column, footer, etc.). Just by staring at the page
> source, it's so hard to find the closing </div> for <div
> id="container">. Any ideas?

It's pretty easy to knock up a script to output a .dot file you can
process with graphviz, which will make a nicely laid out tree diagram.

See http://www.graphviz.org/.

Posted by jussij on October 1, 2006, 3:36 am
Please log in for more thread options


dubing@gmail.com wrote:

> Given a page source, is there any tool that can make a sketch of
> the page structure? Our template is DIV based. It's easy to get
> lost in so many DIV's.

FWIW the latest version of Zeus for Windows:

http://www.zeusedit.com/html.html

will code fold HTML code on DIV and other common HTML tags.

Jussi Jumppanen
Author: Zeus for Windows
NOTE: Zeus is shareware (45 day free trial)


Posted by Nick Kew on October 1, 2006, 6:45 am
Please log in for more thread options


        jussij@zeusedit.com writes:
> dubing@gmail.com wrote:
>
>> Given a page source, is there any tool that can make a sketch of
>> the page structure? Our template is DIV based. It's easy to get
>> lost in so many DIV's.

Yes, many. I think someone already suggested one. Any parser that
creates a tree can do it; for example Site Valet.

> FWIW the latest version of Zeus for Windows:

What??? Do the Zeus people know you're trading on their good name?
It took me a moment to realise this has nothing to do with the Zeus
we all know, but is some shareware wannabe.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.prenhallprofessional.com/title/0132409674

Similar ThreadsPosted
Need to extract portion of HTML page... January 23, 2006, 12:03 am
Semantic Structure of HTML page December 16, 2004, 6:58 am
Extracting semantic structure of HTML page December 23, 2004, 6:57 am
Why can't I save this page as a file and where's the source html? June 22, 2005, 2:08 am
Need help creating a "Click absolutely ANYWHERE on this page" link for an HTML page with no content February 7, 2007, 5:40 pm
Activating parent page link from 'child page' - revised June 3, 2005, 11:30 am
referencing the index.html page from another page in the same directory July 26, 2004, 12:48 am
how to make a link to an old page go to a new page without displaying anything August 20, 2007, 3:08 am
Update a web page with contents from another web page. January 8, 2005, 1:59 pm
I would like to sell my web page - You can run your own business with this web page! June 6, 2007, 4:24 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap