Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can i view the DOM as a tree graph? [closed]

I would like to see the dom of my xhtml page in the form a tree/ graph - in the form of an inverted tree or even otherwise. I tried firebug, DOM Inspector, which displays the dom structure well, but it is in the form of collapsible tree (like you click on + and it displays the branches, and again click + to get the subbranches etc..). While this is fine, I am looking to see if the same can be displayed, sort of, in the form an image, so that visualisation is better.

Any tools that do this?

Thanks!

like image 491
arun nair Avatar asked Oct 11 '11 08:10

arun nair


People also ask

Is the DOM a tree or graph?

A real world example of a tree data structure is the HTML Document Object Model (DOM) structure.

Is the DOM a tree?

The DOM is often referred to as the DOM tree, and consists of a tree of objects called nodes. In the Introduction to the DOM, we went over what the Document Object Model (DOM) is, how to access the document object and modify its properties with the console, and the difference between HTML source code and the DOM.

What kind of graph is a DOM?

One way to represent the DOM is with a tree graph. A tree graph shows the relationship between parent and child objects, with lines between them representing their relationship. Take a family tree as an example.


1 Answers

Take a look at http://www.burlaca.com/2009/02/html2gdl-graphviz/

It's a -

script that creates the graph of a html file/url for aiSee graph layout software [or GraphViz]

like image 99
sinelaw Avatar answered Sep 23 '22 14:09

sinelaw