I wish to reverse engineer any web-page into a logical representation of the page.
For example, if a web page has a menu, then I want a logical menu structure perhaps in XML. If the webpage has an article, I want a article XML node, if it has a title for the article I want a title XML node. Basically, I want the logical form of the web-page without any of the user interface.
This logical model could either be objects in code or XML it doesn’t matter, the important part is that it has identified what everything on the page means.
Sounds like what you want requires a human to categorise a page’s contents.
This could be automated, however it would have false positives and not work in every case.
For example, what if one page used a
ulfor a menu and another one used table cells?Do you want this for one site in particular, or any site on the Internet?