Suppose you want to cluster, or classify, web pages inside a domain. In the same domain similar web pages always have the same structure more or less. (think of every product page an e-commerce would have)
My idea is to convert the HTML tags of every page to a numeric vector, then use those with the clustering method of your choice. In this contest we would not need the actual content of the page, just the structure.
But how to do that?
The first idea I got was to assign every tag a position (sequential), a depth (how inside of other tags it is), and an ID that would identify which kind of tag it is (< img >, < h1 >, < div >...)